update-electron-app is an auto updating solution for open source Electron apps. It is awesome but has some limitations:
- Linux is not supported currently
- For macOS, Apple Developer Program is required (for code sign) to process update
electron-update-notification comes to help in these cases. Instead of downloading installer automatically, it simply notifies user to go to GitHub release page when updates available.
npm install electron-update-notification
import { setUpdateNotification } from 'electron-update-notification'
setUpdateNotification({
repository: 'user/repo', // Optional, use repository field of package.json if not specified
token: '', // Optional, GitHub access token
})
Use it with update-electron-app:
switch (process.platform) {
case 'darwin':
case 'win32':
require('update-electron-app')()
break
default:
require('electron-update-notification').setUpdateNotification({
token: '',
})
}
MIT