From c9d0a6c397a2f90d5779b5cddae31c21b340167f Mon Sep 17 00:00:00 2001 From: Krzysztof Andrelczyk Date: Tue, 18 Mar 2025 23:36:25 +0100 Subject: [PATCH] windows tests --- plugins/updater/src/updater.rs | 1 + plugins/updater/tests/app-updater/tests/update.rs | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/plugins/updater/src/updater.rs b/plugins/updater/src/updater.rs index 955a22e6..9e568ceb 100644 --- a/plugins/updater/src/updater.rs +++ b/plugins/updater/src/updater.rs @@ -446,6 +446,7 @@ impl Updater { #[cfg(target_os = "windows")] impl Updater { fn get_updater_installer(&self) -> Result> { + Ok(Some(Installer::Msi)) } diff --git a/plugins/updater/tests/app-updater/tests/update.rs b/plugins/updater/tests/app-updater/tests/update.rs index 78b65db6..a36ae90e 100644 --- a/plugins/updater/tests/app-updater/tests/update.rs +++ b/plugins/updater/tests/app-updater/tests/update.rs @@ -119,8 +119,11 @@ fn target_to_platforms( update_platform: Option, signature: String, ) -> HashMap { + let mut platforms = HashMap::new(); if let Some(platform) = update_platform { + println!("TARGET: {}", platform.clone()); + platforms.insert( platform, PlatformUpdate { @@ -201,11 +204,11 @@ fn bundle_path(root_dir: &Path, _version: &str, v1compatible: bool) -> PathBuf { } #[cfg(windows)] -fn bundle_paths( +fn test_cases( root_dir: &Path, version: &str, - v1compatible: bool, -) -> Vec<(BundleTarget, PathBuf)> { + target: String +) -> Vec<(BundleTarget, PathBuf, Option, Vec)> { vec![ ( BundleTarget::Nsis, @@ -302,7 +305,7 @@ fn update_app() { { // bundle app update config.version = "1.0.0"; - build_app(&manifest_dir, &config, true, BundleTarget::get_targets()); + build_app(&manifest_dir, &config, true, BundleTarget::default()); let bundle_updater_ext = if v1_compatible { out_bundle_path