Skip to content

Commit

Permalink
Print log file URL before exiting with an error
Browse files Browse the repository at this point in the history
  • Loading branch information
wjk committed Aug 2, 2019
1 parent 349f155 commit 5c2689d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions installer/notarize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ if [[ $request_id =~ ^\{?[A-F0-9a-f]{8}-[A-F0-9a-f]{4}-[A-F0-9a-f]{4}-[A-F0-9a-f
fi
done

log_url=$(/usr/libexec/PlistBuddy -c "print :notarization-info:LogFileURL" $ALTOOL_LOG)
echo "Log file can be downloaded from: $log_url"

if [ "$notarization_status" != "success" ]; then
echo "altool reported notarization error" 1>&2
exit 1
fi

log_url=$(/usr/libexec/PlistBuddy -c "print :notarization-info:LogFileURL" $ALTOOL_LOG)
echo "Log file can be downloaded from: $log_url"

xcrun stapler staple $MY_DIR/darwinbuild-installer.pkg
xcrun stapler validate -v $MY_DIR/darwinbuild-installer.pkg
if [ $@ -ne 0 ]; then
Expand Down

0 comments on commit 5c2689d

Please sign in to comment.