Merged in v1.0.6 (pull request #8)

Package update + update to auto-updater.
This commit is contained in:
Patrick Fic
2020-10-28 13:46:46 +00:00
2 changed files with 8 additions and 5 deletions

View File

@@ -327,10 +327,13 @@ async function checkForUpdates() {
log.info("Checking for updates.");
const result = await autoUpdater.checkForUpdates();
const { updateInfo } = result;
mainWindow.webContents.send(
ipcTypes.app.toRenderer.updateAvailable,
updateInfo
);
if (updateInfo.version !== app.getVersion()) {
mainWindow.webContents.send(
ipcTypes.app.toRenderer.updateAvailable,
updateInfo
);
}
} catch (error) {
log.error("Error while checking for update", error);
}

View File

@@ -3,7 +3,7 @@
"productName": "ImEX RPS",
"author": "ImEX Systems Inc. <support@thinkimex.com>",
"description": "ImEX RPS",
"version": "1.0.5",
"version": "1.0.6",
"main": "electron/main.js",
"homepage": "./",
"dependencies": {