fix(updater): run cleanup before exit on Windows (#1070)

This commit is contained in:
Tony
2024-03-13 16:12:21 +02:00
committed by GitHub
parent 35ea5956d0
commit 1d7dc86ec3
3 changed files with 34 additions and 7 deletions
+5
View File
@@ -98,6 +98,11 @@ impl<R: Runtime, T: Manager<R>> UpdaterExt<R> for T {
}
}
let app_handle = app.app_handle().clone();
builder = builder.on_before_exit(move || {
app_handle.cleanup_before_exit();
});
builder
}