enhancements

This commit is contained in:
Andrew Gundersen 2021-04-13 08:44:06 -05:00
commit ee203d93ba
4 changed files with 45 additions and 27 deletions

View file

@ -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.'
}