feat(cli): generate signatures for non-zipped targets with createUpdaterArtifacts: v1Compatible (#10940)

This commit is contained in:
Amr Bashir
2024-09-20 14:47:36 +03:00
committed by GitHub
parent f57a729cd8
commit 67b8a9a17a
2 changed files with 10 additions and 11 deletions

View File

@@ -0,0 +1,6 @@
---
"tauri-cli": "patch:enhance"
---
Generate `.sig` signature files for installers and bundles when `createUpdaterArtifacts` is set to `v1Compatible`

View File

@@ -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();