comparison deploy/osx/notarize.sh @ 2354:ec88bcdc5a5b

Update notarization notes
author Chris Cannam
date Wed, 09 Oct 2019 15:29:49 +0100
parents 6e9a125ac5f3
children 9ca6872a5d0f
comparison
equal deleted inserted replaced
2353:6845d7dafebf 2354:ec88bcdc5a5b
3 # This is just a scrapbook for the mo 3 # This is just a scrapbook for the mo
4 4
5 ## Before this, we need to open Application Loader and log in to the 5 ## Before this, we need to open Application Loader and log in to the
6 ## right iTunes Connect account 6 ## right iTunes Connect account
7 7
8 # xcrun altool --notarize-app -f "Sonic Visualiser-3.2.dmg" --primary-bundle-id org.sonicvisualiser.SonicVisualiser -u "cannam+apple@all-day-breakfast.com" -p @keychain:"Application Loader: cannam+apple@all-day-breakfast.com" 8 ## Looks like the workflow has changed to using app-specific
9 ## passwords, for 2FA reasons. See
10 ## https://developer.apple.com/documentation/xcode/notarizing_your_app_before_distribution/customizing_the_notarization_workflow?language=objc
11
12 ## The following assumes we have generated an app password at
13 ## appleid.apple.com and then stored it to keychain id "altool" using
14 ## e.g.
15 ## security add-generic-password -a "cannam+apple@all-day-breakfast.com" \
16 ## -w "generated-app-password" -s "altool"
17
18 ## todo: script this
19
20 # xcrun altool --notarize-app -f "Sonic Visualiser-4.0-pre2.dmg" --primary-bundle-id org.sonicvisualiser.SonicVisualiser -u "cannam+apple@all-day-breakfast.com" -p @keychain:altool
9 21
10 ## That churns for a while and then dumps out a UUID 22 ## That churns for a while and then dumps out a UUID
11 23
12 # xcrun altool --notarization-info UUID -u "cannam+apple@all-day-breakfast.com" -p @keychain:"Application Loader: cannam+apple@all-day-breakfast.com" 24 # xcrun altool --notarization-info UUID -u "cannam+apple@all-day-breakfast.com" -p @keychain:altool
13 25
14 ## Returns "in progress" at first, then eventually a failure report 26 ## Returns "in progress" at first, then eventually a failure report
15 ## with a URL that can be retrieved as JSON payload using wget. An 27 ## with a URL that can be retrieved as JSON payload using wget. An
16 ## email is also sent to the iTunes Connect account holder when it 28 ## email is also sent to the iTunes Connect account holder when it
17 ## completes 29 ## completes