From f022b2d1ae57612e39c75782926f2f341d9034a8 Mon Sep 17 00:00:00 2001 From: hrzlgnm Date: Sun, 30 Nov 2025 04:45:43 +0100 Subject: [PATCH] fix(cli): Skip signing bundles entirely if `--no-sign` is requested (#14582) Closes #14581 --- .changes/fix-no-sign-option.md | 6 ++++++ crates/tauri-cli/src/bundle.rs | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 .changes/fix-no-sign-option.md diff --git a/.changes/fix-no-sign-option.md b/.changes/fix-no-sign-option.md new file mode 100644 index 000000000..71352c5ee --- /dev/null +++ b/.changes/fix-no-sign-option.md @@ -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. + diff --git a/crates/tauri-cli/src/bundle.rs b/crates/tauri-cli/src/bundle.rs index e48aee197..890386cd7 100644 --- a/crates/tauri-cli/src/bundle.rs +++ b/crates/tauri-cli/src/bundle.rs @@ -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...