mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-02-06 18:06:47 +00:00
fix(tests): only download update when it is available (#7061)
This commit is contained in:
parent
6c5ade08d9
commit
154ccbe503
@ -27,9 +27,11 @@ fn main() {
|
||||
tauri::async_runtime::spawn(async move {
|
||||
match handle.updater().check().await {
|
||||
Ok(update) => {
|
||||
if let Err(e) = update.download_and_install().await {
|
||||
println!("{e}");
|
||||
std::process::exit(1);
|
||||
if update.is_update_available() {
|
||||
if let Err(e) = update.download_and_install().await {
|
||||
println!("{e}");
|
||||
std::process::exit(1);
|
||||
}
|
||||
}
|
||||
std::process::exit(0);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user