Skip to content

Commit 704d499

Browse files
optimize build config
1 parent bb96ad6 commit 704d499

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.changes/config.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"rust": {
55
"version": true,
66
"getPublishedVersion": "cargo search ${ pkg.pkg } --limit 1 | sed -nE 's/^[^\"]*\"//; s/\".*//1p' -",
7+
"prepublish": [
8+
"sudo apt-get update",
9+
"sudo apt-get install -y webkit2gtk-4.0"
10+
],
711
"publish": [
812
{
913
"command": "cargo package --allow-dirty",
@@ -34,6 +38,12 @@
3438
"javascript": {
3539
"version": true,
3640
"getPublishedVersion": "npm view ${ pkgFile.pkg.name } version",
41+
"prepublish": [
42+
{
43+
"command": "yarn",
44+
"dryRunCommand": true
45+
}
46+
],
3747
"publish": [
3848
{
3949
"command": "echo \"# Yarn Package Publish\"",
@@ -66,9 +76,7 @@
6676
"tauri-plugin-positioner-api": {
6777
"path": ".",
6878
"manager": "javascript",
69-
"dependencies": [
70-
"tauri-plugin-positioner"
71-
]
79+
"dependencies": ["tauri-plugin-positioner"]
7280
}
7381
}
7482
}

.github/workflows/covector-version-or-publish.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ jobs:
2222
run: |
2323
git config --global user.name "${{ github.event.pusher.name }}"
2424
git config --global user.email "${{ github.event.pusher.email }}"
25-
- name: Install webkit2gtk (ubuntu only)
26-
run: |
27-
sudo apt-get update
28-
sudo apt-get install -y webkit2gtk-4.0
2925
- name: Get current date
3026
run: echo "CURRENT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
3127

0 commit comments

Comments
 (0)