Skip to content

thezik/notarizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Notarizer

This is a simple bash script that I wrote to quickly sign, zip, notarize and staple a macOS app for distribution:

  1. Signs the app using codesign (optional)
  2. Zips the app using ditto to prepare to send package to Apple for notarization
  3. Sends package to Apple for notarization using notarytool and waits for result
  4. Staples the app using stapler so it's ready to be distributed

Example

To sign and notarize an app:

./notarizer -d "Developer ID Application: My Company" -k my_appstoreconnect_profile ~/path/to/MyApplication.app

In case the app is already codesigned, you may skip the codesign step by omitting the -d option:

./notarizer -k my_appstoreconnect_profile ~/path/to/MyApplication.app

Prerequisites

Notarizer requires a valid Developer ID certificate to be installed in the keychain to codesign the app. Also, since it uses notarytool, you need to store App Store connect credentials in a profile on your keychain:

xcrun notarytool store-credentials --apple-id <app store connect username> --team-id <team id>

Notice that this will ask you for an app-specific Apple ID password and for a name to save the profile, that you will later use in notarizer.

To discover Developer Identity Name and team id use

security find-identity -p basic -v

About

Sign, zip, notarize and staple a macOS app in one fell swoop

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages