Skip to content

Commit

Permalink
Merge branch 'electron-dev' into electron
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyChen777 committed Mar 25, 2022
2 parents e9a58ef + 0234dff commit b15935e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 0 additions & 3 deletions quasar.conf.win.js
Original file line number Diff line number Diff line change
Expand Up @@ -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${/*}',
Expand Down
9 changes: 9 additions & 0 deletions src-electron/electron-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit b15935e

Please sign in to comment.