Add 'ready-for-update-on-quit' event for auto-updater.

This commit is contained in:
Cheng Zhao 2013-06-03 21:51:46 +08:00
parent f435ed8667
commit a1dc4b88be
6 changed files with 51 additions and 3 deletions

View file

@ -6,5 +6,7 @@ AutoUpdater::__proto__ = EventEmitter.prototype
autoUpdater = new AutoUpdater
autoUpdater.on 'will-install-update-raw', (event, version) ->
@emit 'will-install-update', event, version, => @continueUpdate()
autoUpdater.on 'ready-for-update-on-quit-raw', (event, version) ->
@emit 'ready-for-update-on-quit', event, version, => @quitAndInstall()
module.exports = autoUpdater