electron-builder-notarize-pkg

Notarize Electron applications using electron-builder

Usage no npm install needed!

<script type="module">
  import electronBuilderNotarizePkg from 'https://cdn.skypack.dev/electron-builder-notarize-pkg';
</script>

README

electron-builder-notarize-pkg Build Status

Notarize Electron applications using electron-builder

This package is meant to be used along side electron-builder and electron-builder-notarize

Install

# npm
npm i electron-builder-notarize-pkg --save-dev

# yarn
yarn add electron-builder-notarize-pkg --dev

Usage

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

  • 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

  • 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.

Multiple Teams

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

Credits

This package is inspired by this wiki

License

MIT