check for update on startup

This commit is contained in:
mrvnklm
2020-05-20 12:32:36 +02:00
parent b52310c726
commit 1e290211ce

8
app.js
View File

@@ -32,13 +32,15 @@ const useAutoUpdater = () => {
console.error(message)
});
autoUpdater.on('update-downloaded', () => {
autoUpdater.quitAndInstall();
});
setInterval(() => {
autoUpdater.checkForUpdates();
}, 1000 * 60 * 30);
autoUpdater.on('update-downloaded', () => {
autoUpdater.quitAndInstall();
});
autoUpdater.checkForUpdates();
};
const checkAutoStart = () => {