This commit is contained in:
Andrew Gundersen 2021-04-13 10:47:35 -05:00
commit a17c552b66
3 changed files with 11 additions and 14 deletions

View file

@ -21,16 +21,18 @@ const isDev = require('electron-is-dev');
// NOTE Program Begins Here
(async () => {
autoUpdater.requestHeaders = { 'PRIVATE-TOKEN': 'seMF_apn237iUw8puG9a' }
autoUpdater.logger = log;
// Check for updates right away.
autoUpdater.on('update-downloaded', () => {
autoUpdater.quitAndInstall()
})
autoUpdater.checkForUpdatesAndNotify()
// Then, every two minuntes...
setInterval(() => {
autoUpdater.checkForUpdatesAndNotify()
autoUpdater.checkForUpdatesAndNotify()
}, 120000)
console.log('Starting Crimata electron app.');