Socket
Socket
Sign inDemoInstall

electron-update-notifier

Package Overview
Dependencies
87
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

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.


Version published
Weekly downloads
29
decreased by-70.41%
Maintainers
1
Install size
1.69 MB
Created
Weekly downloads
 

Changelog

Source

1.7.0

  • Bump axios to v1.x

Readme

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

Last updated on 02 Nov 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc