diff --git a/package.json b/package.json index 433e661..b995373 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "darkorbit-client", - "version": "1.0.4", + "version": "1.0.5", "description": "Open source darkorbit client", "main": "index.js", "repository": { diff --git a/update.js b/update.js index 2fa5c50..379e9bd 100644 --- a/update.js +++ b/update.js @@ -16,11 +16,12 @@ autoUpdater.on('error', (error) => { dialog.showErrorBox('Error: ', error == null ? "unknown" : (error.stack || error).toString()) }) -autoUpdater.on('update-available', async () => { +autoUpdater.on('update-available', async (data) => { let check = await dialog.showMessageBoxSync({ type: 'info', - title: 'Updates found', + title: `Updates found: ${data.version}`, message: 'Updates found, do you want to update now?', + detail: data.releaseNotes.replace(/.*?<\/a>/ig,'').replace(/

/ig,'').replace(/<\/p>/ig,'').replace(/
/ig,''), buttons: ['Yes', 'No'] }) @@ -31,13 +32,7 @@ autoUpdater.on('update-available', async () => { indeterminate: false, title: 'Update in progress', text: 'Preparing to download updates.', - detail: 'Downloading ...', - browserWindow: { - icon: `${__dirname}/assets/icon.ico`, - webPreferences: { - nodeIntegration: true - } - } + detail: 'Downloading ...' }) progressBar.on('completed', function() {