Giter Site home page Giter Site logo

therockerline / electron-builder-notarize Goto Github PK

View Code? Open in Web Editor NEW

This project forked from karaggeorge/electron-builder-notarize

0.0 0.0 0.0 47 KB

Notarize Electron applications using electron-builder

License: MIT License

JavaScript 100.00%

electron-builder-notarize's Introduction

electron-builder-notarize Build Status

Notarize Electron applications using electron-builder

For more details regarding the options and functionality: https://github.com/electron/electron-notarize

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.

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

Using notarytool

In order to use notarytool for notarization, XCode 13 or later is required

Authentication methods:

  • username and password
    • APPLE_ID String - The username of your apple developer account
    • APPLE_ID_PASSWORD String - The app-specific password (not your Apple ID password).
    • APPLE_TEAM_ID String - The team ID you want to notarize under.
  • apiKey with apiIssuer:
    • APPLE_API_KEY String - Required for JWT authentication. See Note on JWT authentication below.
    • APPLE_API_KEY_ID String - Required for JWT authentication. See Note on JWT authentication below.
    • APPLE_API_KEY_ISSUER String - Issuer ID. Required if APPLE_API_KEY is specified.
  • keychain with keychainProfile:
    • APPLE_KEYCHAIN String - The name of the keychain or path to the keychain you stored notarization credentials in.
    • APPLE_KEYCHAIN_PROFILE String - The name of the profile you provided when storing notarization credentials.

Using Legacy

General options:

Authentication methods:

  • username and password
    • APPLE_ID String - The username of your apple developer account
    • APPLE_ID_PASSWORD String - The app-specific password (not your Apple ID password).
  • apiKey with apiIssuer
    • APPLE_API_KEY String - Required for JWT authentication. See Note on JWT authentication below.
    • APPLE_API_KEY_ISSUER String - Issuer ID. Required if APPLE_API_KEY is specified.

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

The library used for notarization: https://github.com/electron/electron-notarize

License

MIT

electron-builder-notarize's People

Contributors

karaggeorge avatar arvinxx avatar sallar avatar samuelmeuli avatar juanirache avatar rkbhochalya avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.