Package update + update to auto-updater.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user