@sapien99/vue-cli-plugin-electron-builder-notarize

1.1.3 • Public • Published

vue-cli-plugin-electron-builder-notarize

Notarize Electron applications using vue-cli-plugin-electron-builder

Install

# npm
npm i @oshell/vue-cli-plugin-electron-builder-notarize --save-dev

# yarn
yarn add @oshell/vue-cli-plugin-electron-builder-notarize --dev

Usage

In your electron-builder config:

{
	"afterSign": "@oshell/vue-cli-plugin-electron-builder-notarize",
	"mac": {
		"hardenedRuntime": true,
		"entitlements": "./node_modules/@oshell/vue-cli-plugin-electron-builder-notarize/entitlements.mac.inherit.plist",
	}
}

You can replace the entitlements file with your own, as long as those properties are included as well.

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.

Make sure you generate an application password if you have 2FA enabled. The tool can't handle 2FA and you will end up with an error while trying to upload. Go to https://appleid.apple.com/ and generate an app specific password.

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 a fork of electron-builder-notarize

License

MIT

Package Sidebar

Install

npm i @sapien99/vue-cli-plugin-electron-builder-notarize

Weekly Downloads

91

Version

1.1.3

License

MIT

Unpacked Size

8.9 kB

Total Files

5

Last publish

Collaborators

  • sapien99