Notarize Electron applications using electron-builder
This package is meant to be used along side electron-builder and electron-builder-notarize
# npm
npm i electron-builder-notarize-pkg --save-dev
# yarn
yarn add electron-builder-notarize-pkg --dev
In your electron-builder config:
{
...
"afterAllArtifactBuild": "electron-builder-notarize-pkg",
}
You will also need to authenticate yourself, either with your Apple ID or using an API key. This is done by setting the corresponding environment variables.
APPLE_ID
: The username of your Apple developer account.APPLE_ID_PASSWORD
: An app-specific password. You can create one at appleid.apple.com.
API_KEY_ID
: The ID of your App Store Connect API key, which can be generated here.API_KEY_ISSUER_ID
: The issuer ID of your API key, which can be looked up on the same site.
You will also need the API key .p8
file at the correct location on your file system. See electron-notarize
's docs for details on this setup.
If your developer account is a member of multiple teams or organizations, you might see an error. In this case, you need to provide your Team Short Name as an environment variable:
export TEAM_SHORT_NAME=XXXXXXXXX
This package is inspired by this wiki
MIT