skip uninstalling in CI

pull/2060/head
amrbashir 7 months ago
parent eb5c600eda
commit 021547be1c
No known key found for this signature in database
GPG Key ID: BBD7A47A2003FF33

@ -200,12 +200,14 @@ fn nsis() {
test_update(&app, update_bundle, signature, "nsis");
// cleanup the installed application
if std::env::var("CI").map(|v| v == "true").unwrap_or_default() {
let _ = Command::new(target_dir.join("debug/uninstall.exe"))
.arg("/S")
.status()
.expect("failed to run nsis uninstaller");
std::thread::sleep(std::time::Duration::from_secs(5));
}
}
#[cfg(windows)]
fn msi() {
@ -228,6 +230,7 @@ fn msi() {
test_update(&app, update_bundle, signature, "msi");
// cleanup the installed application
if std::env::var("CI").map(|v| v == "true").unwrap_or_default() {
let uninstall = target_dir.join("debug/Uninstall app-updater.lnk");
let _ = Command::new("cmd")
.arg("/c")
@ -237,6 +240,7 @@ fn msi() {
.expect("failed to run msi uninstaller");
std::thread::sleep(std::time::Duration::from_secs(5));
}
}
#[cfg(target_os = "linux")]
fn appimage() {

Loading…
Cancel
Save