cicd
This commit is contained in:
parent
809ec5e05a
commit
a17c552b66
3 changed files with 11 additions and 14 deletions
|
|
@ -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.');
|
||||
|
|
|
|||
Loading…
Reference in a new issue