golemfactory / bash-notarize

Automated Code Signing and Notarization Script for MacOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bash-Notarize

Sign and Notarize your binaries with ease. :shipit:

Pre-requisites

ProviderName ProviderShortname WWDRTeamID
Example GmbH ID-OF-TEAM ID-OF-TEAM

Usage

./main.sh \
	-a TEAM_ID \
	-u APPLE_ID \
	-p APP_SPECIFIC_PASSWORD \
	-s CERTIFICATE_NAME \
	-i BUNDLE_ID \
	-t TARGET_FILE \
	-e ./entitlements.plist
Abbr Full Flag Description
-a --asc_provider Team ID
-u --ac_username Apple ID
-p --ac_password App-specific Password (For security reasons call it better from keychain. More below.)
-s --app_sign Certificate Name
-i --bundle_id Give a bundle id to identify project easily. e.g. network.golem.app
-t --bundle_target Target tar.gz file of the project (dmg support will be added)
-e --entitlements Additional permission list
-d --sleep_delay Iteration time notarization check
-h --help Help screen

Store App-Specific Password in Keychain

After having your app-specific password from Apple, it's better to keep it in keychain and call it from there.
(Note: This step may need your user password once when running the script)

To add your password;
xcrun altool --store-password-in-keychain-item "TITLE_TO_CALL_PASSWORD_FROM_KEYCHAIN" -u "APPLE_ID" -p YOUR_APP_SPECIFIC_PASS

Later you can use it in script with;

-p @keychain:TITLE_TO_CALL_PASSWORD_FROM_KEYCHAIN \ e.g. -p @keychain:AC_PASSWORD \

About

Automated Code Signing and Notarization Script for MacOS


Languages

Language:Shell 100.0%