File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33set -eu
44
5+ APP_PATH=" dist/tart_darwin_all/tart.app"
6+
57if [ " ${TART_RELEASE_SNAPSHOT:- false} " = " true" ]; then
68 codesign \
79 --force \
810 --deep \
911 --sign - \
1012 --entitlements Resources/tart-dev.entitlements \
11- dist/tart_darwin_all/tart.app
13+ " $APP_PATH "
1214else
1315 codesign \
1416 --force \
1820 --options runtime \
1921 --keychain " $RUNNER_TEMP /build.keychain" \
2022 --entitlements Resources/tart-prod.entitlements \
21- dist/tart_darwin_all/tart.app
23+ " $APP_PATH "
24+ fi
25+
26+ codesign --verify --strict --verbose=2 " $APP_PATH "
27+ " $APP_PATH /Contents/MacOS/tart" --version
2228
23- codesign --verify --strict --verbose=2 dist/tart_darwin_all/tart.app
29+ if [ " ${TART_RELEASE_SNAPSHOT:- false} " != " true" ]; then
30+ NOTARIZATION_ARCHIVE=" $RUNNER_TEMP /tart-notarization.zip"
31+
32+ ditto -c -k --keepParent " $APP_PATH " " $NOTARIZATION_ARCHIVE "
33+ xcrun notarytool submit " $NOTARIZATION_ARCHIVE " \
34+ --keychain-profile " notarytool" \
35+ --keychain " $RUNNER_TEMP /build.keychain" \
36+ --wait \
37+ --timeout 20m
38+ xcrun stapler staple " $APP_PATH "
39+ xcrun stapler validate " $APP_PATH "
40+ spctl --assess --type execute --verbose=4 " $APP_PATH "
2441fi
Original file line number Diff line number Diff line change 2828 persist-credentials : false
2929 - name : Import signing certificate
3030 env :
31+ AC_PASSWORD : ${{ secrets.AC_PASSWORD }}
3132 KEYCHAIN_PASSWORD : temporary-password
3233 MACOS_CERTIFICATE : ${{ secrets.MACOS_CERTIFICATE }}
3334 P12_PASSWORD : password101
4849 -k "$KEYCHAIN_PASSWORD" \
4950 "$RUNNER_TEMP/build.keychain"
5051 security list-keychain -d user -s "$RUNNER_TEMP/build.keychain"
52+ xcrun notarytool store-credentials "notarytool" \
53+ --apple-id "hello@cirruslabs.org" \
54+ --team-id "9M2P8L4D89" \
55+ --password "$AC_PASSWORD" \
56+ --keychain "$RUNNER_TEMP/build.keychain"
5157 - name : Create release app token for this repo
5258 id : app-token
5359 uses : actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
You can’t perform that action at this time.
0 commit comments