From 11c3b7a36dfa07effac3e550536a7af2cc133a0f Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Wed, 28 Oct 2020 06:44:24 -0700 Subject: [PATCH] Package update + update to auto-updater. --- electron/main.js | 11 +++++++---- package.json | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/electron/main.js b/electron/main.js index d9da800..22f807c 100644 --- a/electron/main.js +++ b/electron/main.js @@ -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); } diff --git a/package.json b/package.json index 91a8d53..6192d68 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "productName": "ImEX RPS", "author": "ImEX Systems Inc. ", "description": "ImEX RPS", - "version": "1.0.5", + "version": "1.0.6", "main": "electron/main.js", "homepage": "./", "dependencies": {