webkit-updater
This is node-webkit autoupdater.
Covered by tests and works for linux, windows and mac.
API
new updater(manifest)
Creates new instance of updater. Manifest could be a package.json of project.
Inside manifest, you need to specify where to download packages from for all supported OS'es, manifest url where this manifest could be found and version of the app.
updater:checkNewVersion(cb)
Will check version of application by checking manifest specified in manufestUrl. Callback will be executed if the version was changed.
updater:download(cb)
Will download the new app version in temporary folder.
updater:unpack(filename, cb)
Will unpack the filename
in temporary folder.
updater:runInstaller(appPath, args, options)
Runs installer
updater:getAppPath()
Returns executed application path
updater:getAppExec()
Returns current application executable
updater:install(copyPath, cb)
Installs the app (copies current application to copyPath)
updater:run(execPath, args, options)
Runs the app from original path.