Skip to main content

Auto Update

Requirements

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 NameHow to get it
APPLE_IDYour Apple ID
APPLE_ID_PASSYour Apple password (use an app specific password)
CSC_LINKcode-signing
CSC_KEY_PASSWORDcode-signing

https://github.com/electron-react-boilerplate/electron-react-boilerplate/blob/main/package.json#L34-L35

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.