New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

electron-builder-notarize

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-builder-notarize

Notarize Electron applications using electron-builder

1.2.0
Source
npm
Version published
Weekly downloads
6.4K
15.19%
Maintainers
1
Weekly downloads
 
Created
Source

electron-builder-notarize Build Status

Notarize Electron applications using electron-builder

Install

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

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

Usage

In your electron-builder config:

{
	...
	"afterSign": "electron-builder-notarize",
	"mac": {
		...
		"hardenedRuntime": true,
		"entitlements": "./node_modules/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.

App ID

If for some reason the script can't locate your project's appId, you can specify it using the APP_ID environment variable.

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 article

License

MIT

Keywords

electron

FAQs

Package last updated on 09 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts