Change auto updater to check continuously. Add Double click to tray.

This commit is contained in:
Patrick Fic
2025-04-10 14:54:31 -07:00
parent 7e2c068e52
commit e111dbbf51
5 changed files with 47 additions and 26 deletions

View File

@@ -0,0 +1,19 @@
import { autoUpdater } from "electron-updater";
function checkForAppUpdatesContinuously(): void {
checkForAppUpdates();
setInterval(
() => {
checkForAppUpdatesContinuously();
},
1000 * 60 * 30,
);
}
function checkForAppUpdates(): void {
autoUpdater.checkForUpdatesAndNotify({
title: "Shop Partner Update",
body: "A new version of Shop Partner is available. Click to update.",
});
}
export { checkForAppUpdatesContinuously, checkForAppUpdates };