Skip to content

Commit

Permalink
Log arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
iffy committed Feb 3, 2017
1 parent 1aa133f commit 0d63544
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,23 +73,28 @@ function sendStatus(text) {
//-------------------------------------------------------------------
// Auto updates
//-------------------------------------------------------------------
autoUpdater.on('checking-for-update', (ev) => {
autoUpdater.on('checking-for-update', () => {
sendStatus('Checking for update...');
})
autoUpdater.on('update-available', (ev) => {
autoUpdater.on('update-available', (ev, info) => {
sendStatus('Update available.');
log.info('info', info);
})
autoUpdater.on('update-not-available', (ev) => {
autoUpdater.on('update-not-available', (ev, info) => {
sendStatus('Update not available.');
log.info('info', info);
})
autoUpdater.on('error', (ev) => {
autoUpdater.on('error', (ev, err) => {
sendStatus('Error in auto-updater.');
log.info('err', err);
})
autoUpdater.on('download-progress', (ev) => {
autoUpdater.on('download-progress', (ev, progressObj) => {
sendStatus('Download progress...');
log.info('progressObj', progressObj);
})
autoUpdater.on('update-downloaded', (ev, releaseNotes, releaseName, releaseDate, updateURL) => {
autoUpdater.on('update-downloaded', (ev, info) => {
sendStatus('Update downloaded. Will quit and install in 5 seconds.');
log.info('info', info);
// Wait 5 seconds, then quit and install
setTimeout(function() {
autoUpdater.quitAndInstall();
Expand Down

0 comments on commit 0d63544

Please sign in to comment.