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 => {