windows tests

pull/2624/head
Krzysztof Andrelczyk 4 months ago
parent ef952980e1
commit c9d0a6c397

@ -446,6 +446,7 @@ impl Updater {
#[cfg(target_os = "windows")] #[cfg(target_os = "windows")]
impl Updater { impl Updater {
fn get_updater_installer(&self) -> Result<Option<Installer>> { fn get_updater_installer(&self) -> Result<Option<Installer>> {
Ok(Some(Installer::Msi)) Ok(Some(Installer::Msi))
} }

@ -119,8 +119,11 @@ fn target_to_platforms(
update_platform: Option<String>, update_platform: Option<String>,
signature: String, signature: String,
) -> HashMap<String, PlatformUpdate> { ) -> HashMap<String, PlatformUpdate> {
let mut platforms = HashMap::new(); let mut platforms = HashMap::new();
if let Some(platform) = update_platform { if let Some(platform) = update_platform {
println!("TARGET: {}", platform.clone());
platforms.insert( platforms.insert(
platform, platform,
PlatformUpdate { PlatformUpdate {
@ -201,11 +204,11 @@ fn bundle_path(root_dir: &Path, _version: &str, v1compatible: bool) -> PathBuf {
} }
#[cfg(windows)] #[cfg(windows)]
fn bundle_paths( fn test_cases(
root_dir: &Path, root_dir: &Path,
version: &str, version: &str,
v1compatible: bool, target: String
) -> Vec<(BundleTarget, PathBuf)> { ) -> Vec<(BundleTarget, PathBuf, Option<String>, Vec<i32>)> {
vec![ vec![
( (
BundleTarget::Nsis, BundleTarget::Nsis,
@ -302,7 +305,7 @@ fn update_app() {
{ {
// bundle app update // bundle app update
config.version = "1.0.0"; 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 { let bundle_updater_ext = if v1_compatible {
out_bundle_path out_bundle_path

Loading…
Cancel
Save