Skip to content

Commit 8a0be88

Browse files
chore(covector): update rust getPublishedVersion
1 parent 89c95f1 commit 8a0be88

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.changes/config.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717
},
1818
"rust": {
1919
"version": true,
20-
"getPublishedVersion": "cargo search ${ pkg.pkg } --limit 1 | sed -nE 's/^[^\"]*\"//; s/\".*//1p' -",
20+
"getPublishedVersion": {
21+
"use": "fetch:check",
22+
"options": {
23+
"url": "https://crates.io/api/v1/crates/${ pkg.pkgFile.pkg.package.name }/${ pkg.pkgFile.version }"
24+
}
25+
},
2126
"prepublish": [
2227
"sudo apt-get update",
2328
"sudo apt-get install -y webkit2gtk-4.1"
@@ -43,12 +48,16 @@
4348
"tauri-plugin-drag": {
4449
"path": "./crates/tauri-plugin-drag",
4550
"manager": "rust",
46-
"dependencies": ["drag"]
51+
"dependencies": [
52+
"drag"
53+
]
4754
},
4855
"tauri-plugin-drag-as-window": {
4956
"path": "./crates/tauri-plugin-drag-as-window",
5057
"manager": "rust",
51-
"dependencies": ["drag"]
58+
"dependencies": [
59+
"drag"
60+
]
5261
}
5362
}
5463
}

0 commit comments

Comments
 (0)