feat(bundler): always bundle deb before appimage, fixes
The appimage script depends on output from the deb bundle
@@ -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<Vec<PathBuf>> {
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 => {
