diff --git a/Xdev-app-update.yml b/dev-app-update.yml similarity index 100% rename from Xdev-app-update.yml rename to dev-app-update.yml diff --git a/electron/main.js b/electron/main.js index e9bb080..6c71781 100644 --- a/electron/main.js +++ b/electron/main.js @@ -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();