Skip to content

Commit

Permalink
Merge Apple notarisation fixes
Browse files Browse the repository at this point in the history
This is still not ideal the logic to detect a successful submit appears broken so is currently disabled.
  • Loading branch information
beqjanus committed Apr 5, 2024
2 parents 2ede549 + fda3fef commit eb863e8
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions indra/newview/installers/darwin/apple-notarize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,23 @@ if [[ -f "$CONFIG_FILE" ]]; then
res=$(xcrun notarytool submit "$zip_file" \
--apple-id $USERNAME \
--password $PASSWORD \
--verbose \
--team-id $ASC_PROVIDER \
--wait 2>&1)
echo "Notarytool submit:"
echo $res

[[ "$res" =~ 'id: '([^[:space:]]+) ]]
match=$?
echo "Notarized with id: [$match]"

if [[ ! $match -eq 0 ]]; then
echo "Running Stapler"
xcrun stapler staple "$app_file"
exit 0
else
echo "Notarization error"
exit 1
fi
# if [[ ! $match -eq 0 ]]; then
echo "Running Stapler"
xcrun stapler staple "$app_file"
exit 0
# else
# echo "Notarization error"
# exit 1
# fi
else
echo "Notarization error: ditto failed"
exit 1
Expand Down

0 comments on commit eb863e8

Please sign in to comment.