Auto Update
Requirements
- Apple Developer Certificate (if targeting macOS)
- Windows Developer Certificate (if targeting Windows)
Auto Updates
Electron works with auto updates out of the box.
1. Update Env Variables
To get started you'll need to configure the following environmental variables, which electron-builder uses to sign your app:
Variable Name | How to get it |
---|---|
APPLE_ID | Your Apple ID |
APPLE_ID_PASS | Your Apple password (use an app specific password) |
CSC_LINK | code-signing |
CSC_KEY_PASSWORD | code-signing |
See electron-builder's docs for more details:
2. Update App Config
Update the productName
and appId
.
3. Configure Your Server
Auto update assets need to be published somewhere. For open source apps, its convenient and free to publish via github releases, which electron-react-boilerplate does out of the box. Electron-builder doesn't recommend using github releases publish private apps. Instead you should host your releases you can host your own server
See electron-builder's publish docs for more details.