https://github.com/tpkn/has-updates
https://github.com/tpkn/has-updates
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tpkn/has-updates
- Owner: tpkn
- License: mit
- Created: 2017-10-07T18:33:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-08T20:07:01.000Z (over 8 years ago)
- Last Synced: 2026-04-01T09:42:36.652Z (2 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Light and easy-to-use plugin to check available app updates
## app.js
```javascript
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
```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..."
}
}
```