super-productivity/docs/update-mac-certificates.md

1.2 KiB

Update Mac OS certificates for electron builder

Mac access required!

Certificates

  1. Use XCode to generate new certificates (Preferences/accounts/ManageCertificates... or do it from https://developer.apple.com/account/resources/certificates/list):
  • Apple Development => Local Dev
  • Apple Distribution => Distribute to store and dmg (?)
  • (???) Mac Installer Distribution => Distribute to store
  1. Import new certificates into keychain
  2. Use Keychain to generate all-certs.p12 from all certs (check password!)
  3. base64 -i all-certs.p12 -o all-certs.txt
  4. Update MAC_CERTS with value

Profiles

  1. Go to https://developer.apple.com/account/resources/profiles/list
  2. Create new "Mac App Store" (store) and "Developer ID" (dmg) Profile
  3. Download and move to tools/mac-profiles (HINT: take care that the IDE or editor does not mess up the white-spaces)
  4. Use base64 -i dl.provisionprofile -o dmg-profile.txt and base64 -i mas.provisionprofile -o MAS-profile.txt to get string for CI
  5. Update DL_PROVISION_PROFILE and MAS_PROVISION_PROFILE

See: https://www.electron.build/code-signing.html https://www.electronjs.org/docs/tutorial/mac-app-store-submission-guide