Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electron-update-notifier

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-update-notifier

Notify user about new app updates by fetching release from Github repository.

  • 1.7.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-40%
Maintainers
1
Weekly downloads
 
Created
Source

Electron App Update Notifier

downloads npm-version github-tag license install size build ts

Notify user about new app updates by fetching release from Github repository.

screenshot

Motivation

update-electron-app is an auto updating solution for open source Electron apps. It is awesome but has some limitations:

  • It does not support Linux currently
  • Applications on macOS must be signed in order to work.

This package 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-notifier

Usage

Auto check for updates on app start

const {app} = require('electron');
const {setUpdateNotification} = require('electron-update-notifier');

app.whenReady().then(() => {
    setUpdateNotification({
        repository: 'user/repo', // Optional, use repository field from your package.json when not specified
        token: '', // Optional, GitHub api access token
        debug: false, // Optional, default `false`, allows to check for updates during development as well
        silent: true // Optional, notify when new version available, otherwise remain silent 
    })
})

Check for updates manually

const {checkForUpdates} = require('electron-update-notifier');

checkForUpdates({
    // options 
    silent: false, // Warn about network failures and notify when there is no updates
})

Use it with update-electron-app:

switch (process.platform) {
    case 'darwin':
    case 'win32':
        require('update-electron-app')()
        break
    default:
        require('electron-update-notifier').setUpdateNotification({
            // options
        })
}

Acknowledgements

@pd4d10 for original work

License

MIT License

Keywords

FAQs

Package last updated on 02 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc