From cccb308c7b559b0838138d6cea280665f060c925 Mon Sep 17 00:00:00 2001 From: jLynx Date: Wed, 13 Nov 2024 14:12:06 +1300 Subject: [PATCH] feat(bundler): create signature for `.deb` bundle (#11562) --- .changes/deb-updater-support.md | 7 +++++++ crates/tauri-bundler/src/bundle.rs | 3 ++- crates/tauri-cli/src/bundle.rs | 6 +++++- 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 .changes/deb-updater-support.md diff --git a/.changes/deb-updater-support.md b/.changes/deb-updater-support.md new file mode 100644 index 000000000..001a5b1dc --- /dev/null +++ b/.changes/deb-updater-support.md @@ -0,0 +1,7 @@ +--- +'tauri-bundler': minor:feat +'tauri-cli': minor:feat +'@tauri-apps/cli': minor:feat +--- + +Generate signature for `.deb` packages when `createUpdaterArtifacts` option is enabled. diff --git a/crates/tauri-bundler/src/bundle.rs b/crates/tauri-bundler/src/bundle.rs index 17100cb9c..2f470c0c3 100644 --- a/crates/tauri-bundler/src/bundle.rs +++ b/crates/tauri-bundler/src/bundle.rs @@ -151,6 +151,7 @@ pub fn bundle_project(settings: &Settings) -> crate::Result> { | PackageType::MacOsBundle | PackageType::Nsis | PackageType::WindowsMsi + | PackageType::Deb ) } else { matches!(package_type, PackageType::MacOsBundle) @@ -166,7 +167,7 @@ pub fn bundle_project(settings: &Settings) -> crate::Result> { // Self contained updater, no need to zip matches!( package_type, - PackageType::AppImage | PackageType::Nsis | PackageType::WindowsMsi + PackageType::AppImage | PackageType::Nsis | PackageType::WindowsMsi | PackageType::Deb ) }) { diff --git a/crates/tauri-cli/src/bundle.rs b/crates/tauri-cli/src/bundle.rs index eded4aa2b..5473c4b46 100644 --- a/crates/tauri-cli/src/bundle.rs +++ b/crates/tauri-cli/src/bundle.rs @@ -226,7 +226,11 @@ fn sign_updaters( .filter(|bundle| { matches!( bundle.package_type, - PackageType::Updater | PackageType::Nsis | PackageType::WindowsMsi | PackageType::AppImage + PackageType::Updater + | PackageType::Nsis + | PackageType::WindowsMsi + | PackageType::AppImage + | PackageType::Deb ) }) .collect();