fix(cli): Skip signing bundles entirely if --no-sign is requested (#14582)

Closes #14581
This commit is contained in:
hrzlgnm
2025-11-30 04:45:43 +01:00
committed by GitHub
parent 1573c72402
commit f022b2d1ae
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
---
tauri-cli: patch:bug
---
Fixed an issue that caused the cli to error out with missing private key, in case the option `--no-sign` was requested and the `tauri.config` has signing key set and the plugin `tauri-plugin-updater` is used.

View File

@@ -249,6 +249,11 @@ fn sign_updaters(
return Ok(());
}
if settings.no_sign() {
log::warn!("Updater signing is skipped due to --no-sign flag.");
return Ok(());
}
// get the public key
let pubkey = &update_settings.pubkey;
// check if pubkey points to a file...