This repo contains the bare minimum code to have an auto-updating Electron app using electron-updater with releases stored on GitHub.
If you can't use GitHub, you can use other providers:
- Complete electron-updater HTTP example
- Complete electron-updater from gitlab.com private repo example
NOTE: If you want to run through this whole process, either fork this repo or start your own from a template. Then replace all instances of iffy with your GitHub username before doing the following steps.
-
For macOS, you will need a code-signing certificate.
Install Xcode (from the App Store), then follow these instructions to make sure you have a "Developer ID Application" certificate. If you'd like to export the certificate (for automated building, for instance) you can. You would then follow these instructions.
This example application is set up to perform code-signing and notarization on Mac OS provided that a
Developer ID Applicationcertificate is installed in the default keychain. The following environment variables are important for the signing process:CSC_IDENTITY_AUTO_DISCOVERY- controls whetherelectron-buildertries to sign the application; default istrue, set tofalseto skip signing