npm install webkit-updaterwebkit-updater
=======
This is node-webkit autoupdater.
Covered by tests and works for linux, windows and mac.
##API
Creates new instance of updater. Manifest could be a package.json of project.
``json`
{
"name": "updapp",
"version": "0.0.2",
"author": "Eldar Djafarov
"manifestUrl": "http://localhost:3000/package.json",
"packages": {
"mac": "http://localhost:3000/releases/updapp/mac/updapp.dmg",
"win": "http://localhost:3000/releases/updapp/win/updapp.zip",
"linux32": "http://localhost:3000/releases/updapp/linux32/updapp.tar.gz"
}
}
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.
Will check version of application by checking manifest specified in manufestUrl. Callback will be executed if the version was changed.
Will download the new app version in temporary folder.
Will unpack the filename` in temporary folder.
Runs installer
Returns executed application path
Returns current application executable
Installs the app (copies current application to copyPath)
Runs the app from original path.