Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
tools: add macOS notarization verification step
  • Loading branch information
UlisesGascon committed Nov 21, 2023
commit 5bdd3c495b7d55e695423a579c2919ecf95d7ed2
7 changes: 7 additions & 0 deletions tools/osx-notarize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,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."