Scarvy / apple-notes-readwise

Export Readwise highlights to Apple Notes
GNU General Public License v3.0
0 stars 0 forks source link

Automatic app updater #9

Open Scarvy opened 3 hours ago

Scarvy commented 3 hours ago

Update the application automatically when a new version is pushed to GitHub.

Need to review documentation here on the best approach.

Scarvy commented 3 hours ago

The simplest way seems to be using the update.electronjs.org since the app meets the following criteria:

Scarvy commented 3 hours ago

I just need to install:

npm install update-electron-app

and invoke the updater in the main process file:

require('update-electron-app')()

The electron docs say:

By default, this module will check for updates at app startup, then every ten minutes. When an update is found, it will automatically be downloaded in the background. When the download completes, a dialog is displayed allowing the user to restart the app.