diff --git a/src/browser/auto-updater-win32.coffee b/src/browser/auto-updater-win32.coffee index 89018a396..d1ed277e2 100644 --- a/src/browser/auto-updater-win32.coffee +++ b/src/browser/auto-updater-win32.coffee @@ -14,6 +14,8 @@ class AutoUpdater require('auto-updater').quitAndInstall() downloadUpdate: (callback) -> + @emit 'update-available' + SquirrelUpdate.spawn ['--download', @updateUrl], (error, stdout) -> return callback(error) if error? @@ -56,7 +58,6 @@ class AutoUpdater @emit 'update-not-available' return - @emit 'update-available' @emit 'update-downloaded', {}, update.releaseNotes, update.version, new Date(), 'https://atom.io', => @quitAndInstall() module.exports = new AutoUpdater()