Package update for 1.0.10

This commit is contained in:
Patrick Fic
2020-11-17 15:54:28 -08:00
parent 777b9f41d5
commit b057f50579
4 changed files with 9 additions and 13 deletions

View File

@@ -86,7 +86,7 @@ var menu = Menu.buildFromTemplate([
click() {
mainWindow.webContents.send(
ipcTypes.app.toRenderer.setReleaseNotes,
require("../changelog.json")[app.getVersion()]
require("./changelog.json")[app.getVersion()]
);
},
},
@@ -335,16 +335,7 @@ autoUpdater.on("update-downloaded", (ev, info) => {
async function checkForUpdates() {
try {
log.info("Checking for updates.");
//const result = await
autoUpdater.checkForUpdates();
// const { updateInfo } = result;
// if (updateInfo.version !== app.getVersion()) {
// mainWindow.webContents.send(
// ipcTypes.app.toRenderer.updateAvailable,
// updateInfo
// );
// }
} catch (error) {
log.error("Error while checking for update", error);
}