Change auto updater to check continuously. Add Double click to tray.
This commit is contained in:
19
src/main/util/checkForAppUpdates.ts
Normal file
19
src/main/util/checkForAppUpdates.ts
Normal 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 };
|
||||
Reference in New Issue
Block a user