From cbb08130a79c69d5f4ce13b6f0618322ecba5738 Mon Sep 17 00:00:00 2001 From: jLynx Date: Wed, 13 Nov 2024 16:05:00 +1300 Subject: [PATCH] Adjusted order --- plugins/updater/tests/app-updater/tests/update.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/plugins/updater/tests/app-updater/tests/update.rs b/plugins/updater/tests/app-updater/tests/update.rs index f60094b1..a4524b5f 100644 --- a/plugins/updater/tests/app-updater/tests/update.rs +++ b/plugins/updater/tests/app-updater/tests/update.rs @@ -105,9 +105,7 @@ impl Default for BundleTarget { #[cfg(any(target_os = "macos", target_os = "ios"))] return Self::App; #[cfg(target_os = "linux")] - { - return Self::AppImage; - } + return Self::Deb; #[cfg(windows)] return Self::Nsis; } @@ -118,15 +116,15 @@ fn bundle_paths(root_dir: &Path, version: &str) -> Vec<(BundleTarget, PathBuf)> // Return both AppImage and Deb paths vec![ ( - BundleTarget::AppImage, + BundleTarget::Deb, 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!( - "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")] - let bundle_targets = vec![BundleTarget::AppImage, BundleTarget::Deb]; + let bundle_targets = vec![BundleTarget::Deb, BundleTarget::AppImage]; #[cfg(not(target_os = "linux"))] let bundle_targets = vec![BundleTarget::default()];