mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
12 lines
375 B
CoffeeScript
12 lines
375 B
CoffeeScript
AutoUpdater = process.atomBinding('auto_updater').AutoUpdater
|
|
EventEmitter = require('events').EventEmitter
|
|
|
|
AutoUpdater::__proto__ = EventEmitter.prototype
|
|
|
|
autoUpdater = new AutoUpdater
|
|
autoUpdater.on 'update-downloaded-raw', (args...) ->
|
|
args[2] = new Date(args[2]) # releaseDate
|
|
@emit 'update-downloaded', args..., => @quitAndInstall()
|
|
|
|
module.exports = autoUpdater
|