mirror of
https://github.com/tiennm99/claude-code-usage-bubble.git
synced 2026-10-22 10:16:07 +00:00
ci: refuse a release while the updater public key is empty
This commit is contained in:
1 parent
4918a5e3bd
commit
94722f2741
3 files changed
+16
-1
No files matched your search
@@ -45,6 +45,17 @@ jobs:
|
||||
}
|
||||
Write-Host "Cargo version $cargoVersion matches tag $tag"
|
||||
|
||||
# An exe without the updater public key can never verify, and so never
|
||||
# install, a later update; every install of it would be stranded.
|
||||
- name: Refuse an empty updater public key
|
||||
shell: pwsh
|
||||
run: |
|
||||
$pubkey = (Get-Content tauri.conf.json -Raw | ConvertFrom-Json).plugins.updater.pubkey
|
||||
if ([string]::IsNullOrWhiteSpace($pubkey)) {
|
||||
Write-Error "plugins.updater.pubkey in tauri.conf.json is empty: put the updater public key there before releasing."
|
||||
exit 1
|
||||
}
|
||||
|
||||
- name: Build release
|
||||
run: cargo build --release --locked
|
||||
|
||||
|
||||
Reference in new issue
Block a user