Added auto update check every 30 minutes. RPS-38
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user