Skip to content

Commit

Permalink
tools: add macOS notarization verification step
Browse files Browse the repository at this point in the history
PR-URL: #50833
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
  • Loading branch information
UlisesGascon committed Dec 19, 2023
1 parent 107b5e6 commit c8d6dd5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/osx-notarize.sh
Expand Up @@ -48,5 +48,12 @@ else
exit 1
fi

if ! xcrun spctl --assess --type install --context context:primary-signature --ignore-cache --verbose=2 "node-$pkgid.pkg"; then
echo "error: Signature will not be accepted by Gatekeeper!" 1>&2
exit 1
else
echo "Verification was successful."
fi

xcrun stapler staple "node-$pkgid.pkg"
echo "Stapler was successful."

0 comments on commit c8d6dd5

Please sign in to comment.