Skip to content

Commit 19ae04a

Browse files
Add: Fetching the Notary Log macOS build.
The notary log is a key tool for debugging notarisation and trusted execution issues. Review the log: - When notarisation fails, for information as to what’s wrong - When notarisation succeeds, to check for warnings - If you encounter a trusted execution problem, to confirm that all your code was included in the notarised ticket
1 parent f4878ad commit 19ae04a

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/cicd.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ jobs:
175175
PROD_MACOS_NOTARIZATION_TEAM_ID: ${{ secrets.PROD_MACOS_NOTARIZATION_TEAM_ID }}
176176
PROD_MACOS_NOTARIZATION_PWD: ${{ secrets.PROD_MACOS_NOTARIZATION_PWD }}
177177
MACOS_APP: enduser/trackereditor.app
178+
NOTARIZE_RESULT: notarize_result.txt
179+
NOTARIZE_LOG: notarize_log.json
180+
SUBMISSION_ID: ""
178181
run: |
179182
# Store the notarization credentials so that we can prevent a UI password dialog
180183
# from blocking the CI
@@ -195,7 +198,17 @@ jobs:
195198
# you're curious
196199
197200
echo "Notarize app"
198-
xcrun notarytool submit "notarization.zip" --keychain-profile "notarytool-profile" --wait
201+
xcrun notarytool submit "notarization.zip" --keychain-profile "notarytool-profile" --wait > "$NOTARIZE_RESULT" 2>&1
202+
203+
echo "Notarize log"
204+
SUBMISSION_ID=`awk '/id: / { print $2;exit; }' $NOTARIZE_RESULT`
205+
echo "id: ${SUBMISSION_ID}"
206+
xcrun notarytool log "$SUBMISSION_ID" --keychain-profile "notarytool-profile" "$NOTARIZE_LOG"
207+
cat "$NOTARIZE_LOG"
208+
209+
# These files are no longer needed, so we can remove them.
210+
rm -f "$NOTARIZE_LOG"
211+
rm -f "$NOTARIZE_RESULT"
199212
200213
# Finally, we need to "attach the staple" to our executable, which will allow our app to be
201214
# validated by macOS even when an internet connection is not available.

0 commit comments

Comments
 (0)