Эх сурвалжийг харах

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

Amr Bashir 10 сар өмнө
parent
commit
67b8a9a17a

+ 6 - 0
.changes/sign-non-zipped-updater-with-v1-compatible.md

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

+ 4 - 11
crates/tauri-cli/src/bundle.rs

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