mirror of
https://github.com/electron/electron.git
synced 2026-02-15 09:35:34 -05:00
13 lines
488 B
CoffeeScript
13 lines
488 B
CoffeeScript
AutoUpdater = process.atomBinding('auto_updater').AutoUpdater
|
|
EventEmitter = require('events').EventEmitter
|
|
|
|
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
|