Skip to content

pd4d10/electron-update-notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

electron-update-notification

npm

Motivation

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.

Installation

npm install electron-update-notification

Usage

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: '',
    })
}

License

MIT

About

Update notifier for open source Electron apps

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published