Skip to content
Permalink
Browse files

feat(electron): add extra loggin around auto updating

  • Loading branch information...
devinus committed Jan 28, 2019
1 parent 28e8748 commit c706604918183f7138882745a22564c52a08aa07
Showing with 17 additions and 7 deletions.
  1. +17 −7 ember-electron/main.js
@@ -152,15 +152,25 @@ const run = async () => {

await app.whenReady();

autoUpdater.on('checking-for-update', () => {
global.isUpdating = false;
});
if (!is.development) {
autoUpdater.on('checking-for-update', () => {
log.info('Checking for update:', productName, '>', version);
global.isUpdating = false;
});

autoUpdater.on('update-downloaded', () => {
global.isUpdating = true;
});
autoUpdater.on('update-available', () => {
log.info('Update available:', productName, '>', version);
});

autoUpdater.on('update-not-available', () => {
log.info('Update not available:', productName, '>', version);
});

autoUpdater.on('update-downloaded', (event, releaseNotes, releaseName) => {
log.info('Update downloaded:', productName, releaseName);
global.isUpdating = true;
});

if (!is.development) {
updateElectronApp({
logger: log,
updateInterval: '30 minutes',

0 comments on commit c706604

Please sign in to comment.
You can’t perform that action at this time.