auto-update

This commit is contained in:
2024-11-03 18:24:57 +02:00
parent cf845cae1b
commit e3a6d826f9
5 changed files with 37 additions and 10 deletions

View File

@@ -46,7 +46,10 @@ if (electronIsDev) {
// Initialize our app, build windows, and load content.
await myCapacitorApp.init();
// Check for updates if we are in a packaged app.
// autoUpdater.checkForUpdatesAndNotify();
autoUpdater.checkForUpdatesAndNotify();
setInterval(() => {
autoUpdater.checkForUpdatesAndNotify();
}, 6 * 60 * 60 * 1000); // 24 hours in milliseconds
})();
// Handle when all of our windows are close (platforms have their own expectations).