Added release notes display to updater. RPS-48

This commit is contained in:
Patrick Fic
2020-11-16 10:04:11 -08:00
parent b6ce94df08
commit ecf911bc43
14 changed files with 123 additions and 4 deletions

View File

@@ -81,6 +81,15 @@ var menu = Menu.buildFromTemplate([
checkForUpdates();
},
},
{
label: `Show Release Notes`,
click() {
mainWindow.webContents.send(
ipcTypes.app.toRenderer.setReleaseNotes,
require("../changelog.json")[app.getVersion()]
);
},
},
{
label: "Open Config File",
click() {
@@ -318,6 +327,7 @@ autoUpdater.on("update-downloaded", (ev, info) => {
if (buttonIndex === 0) {
const isSilent = true;
const isForceRunAfter = true;
store.set("showChangeLog", true);
autoUpdater.quitAndInstall(isSilent, isForceRunAfter);
} else {
logger.error("Error");