Adjusted order

pull/1991/head
jLynx 9 months ago
parent 5a95db813b
commit cbb08130a7

@ -105,9 +105,7 @@ impl Default for BundleTarget {
#[cfg(any(target_os = "macos", target_os = "ios"))] #[cfg(any(target_os = "macos", target_os = "ios"))]
return Self::App; return Self::App;
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
{ return Self::Deb;
return Self::AppImage;
}
#[cfg(windows)] #[cfg(windows)]
return Self::Nsis; return Self::Nsis;
} }
@ -118,15 +116,15 @@ fn bundle_paths(root_dir: &Path, version: &str) -> Vec<(BundleTarget, PathBuf)>
// Return both AppImage and Deb paths // Return both AppImage and Deb paths
vec![ vec![
( (
BundleTarget::AppImage, BundleTarget::Deb,
root_dir.join(format!( root_dir.join(format!(
"target/debug/bundle/appimage/app-updater_{version}_amd64.AppImage" "target/debug/bundle/deb/app-updater_{version}_amd64.deb"
)), )),
), ),
( (
BundleTarget::Deb, BundleTarget::AppImage,
root_dir.join(format!( root_dir.join(format!(
"target/debug/bundle/deb/app-updater_{version}_amd64.deb" "target/debug/bundle/appimage/app-updater_{version}_amd64.AppImage"
)), )),
), ),
] ]
@ -212,7 +210,7 @@ fn update_app() {
); );
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
let bundle_targets = vec![BundleTarget::AppImage, BundleTarget::Deb]; let bundle_targets = vec![BundleTarget::Deb, BundleTarget::AppImage];
#[cfg(not(target_os = "linux"))] #[cfg(not(target_os = "linux"))]
let bundle_targets = vec![BundleTarget::default()]; let bundle_targets = vec![BundleTarget::default()];

Loading…
Cancel
Save