Skip to content

Commit

Permalink
feat(cli): generate signatures for non-zipped targets with `createUpd…
Browse files Browse the repository at this point in the history
…aterArtifacts: v1Compatible` (#10940)
  • Loading branch information
amrbashir authored Sep 20, 2024
1 parent f57a729 commit 67b8a9a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
6 changes: 6 additions & 0 deletions .changes/sign-non-zipped-updater-with-v1-compatible.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri-cli": "patch:enhance"
---

Generate `.sig` signature files for installers and bundles when `createUpdaterArtifacts` is set to `v1Compatible`

15 changes: 4 additions & 11 deletions crates/tauri-cli/src/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,17 +225,10 @@ fn sign_updaters(
let update_enabled_bundles: Vec<&tauri_bundler::Bundle> = bundles
.iter()
.filter(|bundle| {
if update_settings.v1_compatible {
matches!(bundle.package_type, PackageType::Updater)
} else {
matches!(
bundle.package_type,
PackageType::Updater
| PackageType::Nsis
| PackageType::WindowsMsi
| PackageType::AppImage
)
}
matches!(
bundle.package_type,
PackageType::Updater | PackageType::Nsis | PackageType::WindowsMsi | PackageType::AppImage
)
})
.collect();

Expand Down

0 comments on commit 67b8a9a

Please sign in to comment.