Added release notes display to updater. RPS-48
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user