has-updates

1.1.9 • Public • Published

Light and easy-to-use plugin to check available app updates

app.js

const hasUpdates = require('has-updates');
 
hasUpdates("https://domain.me/public/apps/myapp/updates.json", electron.app.getVersion())
.then((result) => {
   console.log(result);
}, (error) => {
   console.log(error);
});
 

updates.json

{
   "version": "0.0.2",
   "win": {
      "url": "myapp-0.0.2.exe",
      "description": "Fixed horrible bugs"
   },
   "mac": {
      "url": "myapp-0.0.2.dmg",
      "description": "Fixed even more horrible bugs"
   },
   "linux": {
      "url": "myapp-0.0.2.zip",
      "description": "Meh..."
   }
}

Package Sidebar

Install

npm i has-updates

Weekly Downloads

0

Version

1.1.9

License

MIT

Last publish

Collaborators

  • tpkn