From 0234dff1b3cce1b0d67ac94dcb0a91ebb86d1d47 Mon Sep 17 00:00:00 2001 From: geoffreychen777 Date: Fri, 25 Mar 2022 00:30:09 +0000 Subject: [PATCH] fix window release note --- quasar.conf.win.js | 3 --- src-electron/electron-main.js | 9 +++++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/quasar.conf.win.js b/quasar.conf.win.js index 23eb1147..e87f51fb 100644 --- a/quasar.conf.win.js +++ b/quasar.conf.win.js @@ -233,9 +233,6 @@ module.exports = configure(function (ctx) { oneClick: false, createDesktopShortcut: 'always', allowToChangeInstallationDirectory: true, - releaseInfo: { - releaseNotesFile: './src-electron/release-notes.md', - }, }, files: [ '!node_modules/realm/react-native${/*}', diff --git a/src-electron/electron-main.js b/src-electron/electron-main.js index 0cee1843..eb44ae44 100644 --- a/src-electron/electron-main.js +++ b/src-electron/electron-main.js @@ -355,6 +355,15 @@ autoUpdater.on('error', (error) => { // eslint-disable-next-line @typescript-eslint/no-misused-promises autoUpdater.on('update-downloaded', async (info) => { BrowserWindow.getFocusedWindow().webContents.send('log', info); + + if (!info.releaseNotes) { + info.releaseNotes = ''; + } + + if (!info.version) { + info.version = ''; + } + const dialogOpts = { type: 'info', buttons: ['Update Now', 'Cancel'],