Added auto update check every 30 minutes. RPS-38

This commit is contained in:
Patrick Fic
2020-11-16 10:08:21 -08:00
parent ecf911bc43
commit be6262f4ec
2 changed files with 4 additions and 7 deletions

View File

@@ -204,6 +204,10 @@ app.whenReady().then(() => {
.catch((error) => console.log(`An error occurred: , ${error}`));
}
setInterval(() => {
checkForUpdates();
}, 1000 * 60 * 30); //Added auto update check for RPS-38
// ipcMain.on(ipcTypes.default.webcontent, (event, ...obj) => {
// console.log("event", event);
// mainWindow.webContents.send(event, obj);
@@ -255,9 +259,6 @@ function createTray() {
return appIcon;
}
// autoUpdater.on("checking-for-update", () => {
// log.log("Checking for update...");
// });
autoUpdater.on("update-available", (ev) => {
log.log("Update available.", ev);
mainWindow.webContents.send(ipcTypes.app.toRenderer.updateAvailable, ev);
@@ -270,10 +271,6 @@ autoUpdater.on("error", (ev, err) => {
log.log("Error in auto-updater.", ev, err);
});
// // autoUpdater.on("update-downloaded", (ev, info) => {
// // console.log("Update downloaded; will install in 5 seconds");
// // });
function openNoticeWindow() {
if (noticeWindow) {
noticeWindow.focus();