elupdater
v1.5.2
Published
run in main process to update frame and app
Downloads
7
Readme
##Install npm install elupdater --save ##Usage var auto = require('./autoupdater');
auto.setFeedURL({updateURL:'http://localhost:8087/update/SVersion.json',frameVer:'0.36.3',appVer:'1.5.0',downloadPath:"E:"});
auto.on('error',(err)=>console.log(err)); auto.on('checking-for-update',()=>console.log('checking-for-update')); auto.on('update-available',(version,downloadurl)=>console.log('update-available'+version,downloadurl)); auto.on('update-not-available',(frameMD5,appMD5)=>console.log('update-not-available '+frameMD5+appMD5)); auto.on('update-downloaded',(localpath)=>{console.log('update-downloaded'+localpath);});
auto.checkForUpdates();