Skip to content

Commit f022b2d

Browse files
authored
fix(cli): Skip signing bundles entirely if --no-sign is requested (#14582)
Closes #14581
1 parent 1573c72 commit f022b2d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.changes/fix-no-sign-option.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
tauri-cli: patch:bug
3+
---
4+
5+
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.
6+

crates/tauri-cli/src/bundle.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,11 @@ fn sign_updaters(
249249
return Ok(());
250250
}
251251

252+
if settings.no_sign() {
253+
log::warn!("Updater signing is skipped due to --no-sign flag.");
254+
return Ok(());
255+
}
256+
252257
// get the public key
253258
let pubkey = &update_settings.pubkey;
254259
// check if pubkey points to a file...

0 commit comments

Comments
 (0)