enhancements
This commit is contained in:
parent
4b6d42612a
commit
ee203d93ba
4 changed files with 45 additions and 27 deletions
|
|
@ -24,14 +24,21 @@ const isDev = require('electron-is-dev');
|
|||
|
||||
})();
|
||||
|
||||
// Auto app updates.
|
||||
// Code for auto app updates.
|
||||
if (!isDev) {
|
||||
|
||||
autoUpdater.setFeedURL({
|
||||
url: "https://gitlab.com/api/v4/projects/25637892/releases",
|
||||
headers: {"PRIVATE-TOKEN": "fSCN8xr4EgccV7z1UNaw"},
|
||||
serverType: "default"
|
||||
})
|
||||
|
||||
autoUpdater.on('update-downloaded', (event, releaseNotes, releaseName) => {
|
||||
const dialogOpts = {
|
||||
type: 'info',
|
||||
buttons: ['Restart', 'Later'],
|
||||
title: 'Application Update',
|
||||
message: releaseName,
|
||||
message: process.platform === 'win32' ? releaseNotes : releaseName,
|
||||
detail: 'A new version has been downloaded. Restart the application to apply the updates.'
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue