From f1afb5c366645be5deb31ffa537a2c69c754cbde Mon Sep 17 00:00:00 2001 From: Noah Klayman Date: Tue, 26 Jan 2021 18:03:22 -0800 Subject: [PATCH] feat(bundler): always bundle deb before appimage, fixes #1026 (#1156) The appimage script depends on output from the deb bundle --- cli/tauri-bundler/src/bundle.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cli/tauri-bundler/src/bundle.rs b/cli/tauri-bundler/src/bundle.rs index f86f0d8cf..bc7f7bf62 100644 --- a/cli/tauri-bundler/src/bundle.rs +++ b/cli/tauri-bundler/src/bundle.rs @@ -25,7 +25,14 @@ use std::path::PathBuf; /// Returns the list of paths where the bundles can be found. pub fn bundle_project(settings: Settings) -> crate::Result> { let mut paths = Vec::new(); - let package_types = settings.package_types()?; + let mut package_types = settings.package_types()?; + // The AppImage bundle script requires that the Deb bundle be run first + if package_types.contains(&PackageType::AppImage) { + if let Some(deb_pos) = package_types.iter().position(|&p| p == PackageType::Deb) { + package_types.remove(deb_pos); + } + package_types.insert(0, PackageType::Deb); + } for package_type in &package_types { let mut bundle_paths = match package_type { PackageType::OsxBundle => {