0.0.12 • Published 10 years ago

nw-updater v0.0.12

Weekly downloads
5
License
ISC
Repository
github
Last release
10 years ago

node-webkit updater module

Automatically (and silently) updates node-webkit apps on the background

How it works?

This code will contact the update API endpoint and if a new version is available, will download and install it.

var gui = require('nw.gui');
var currentVersion = gui.App.manifest.version

var updater = require('nw-updater')({'channel':'beta', "currentVersion": currentVersion,'endpoint':'http://torrentv.github.io/update.json'})
updater.update()

updater.on("download", function(version){
    console.log("OH YEAH! going to download version "+version)
})

updater.on("installed", function(){
    console.log("SUCCCESSFULLY installed, please restart")
})

For an example update.json please visit: http://torrentv.github.io/update.json

Installation

With npm:

NPM

Executable creation

It is designed to work with builds generated with grunt-node-webkit-builder-for-nw-updater

NPM

Update.json:

update.json checksums and signatures can be created using node-sign-release

Kudos

Kudos for the original authors of this module, the PopcornTime.io developers.

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago