mirror of
https://github.com/jcefmaven/jcefbuild.git
synced 2025-09-17 12:56:37 +08:00
Improve check for code signatures
This commit is contained in:
parent
bc4c3dc942
commit
c7d55dc880
@ -74,6 +74,11 @@ if [ $# -gt 4 ]
|
||||
then
|
||||
chmod +x $WORK_DIR/macosx_codesign.sh
|
||||
bash $WORK_DIR/macosx_codesign.sh $(pwd) "$5" $6 $7 $8 $9
|
||||
retVal=$?
|
||||
if [ $retVal -ne 0 ]; then
|
||||
echo "Binaries are not correctly signed"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
#Pack binary_distrib
|
||||
|
@ -51,11 +51,15 @@ bash macosx_codesign_zip.sh "$APP_DIR/$APP_NAME/Contents/Java/jogl-all-natives-m
|
||||
bash macosx_codesign_zip.sh "$APP_DIR/$APP_NAME/Contents/Java/jogl-all-natives-macosx-universal.jar" "natives/macosx-universal/libjogl_mobile.dylib" "$2"
|
||||
bash macosx_codesign_zip.sh "$APP_DIR/$APP_NAME/Contents/Java/jogl-all-natives-macosx-universal.jar" "natives/macosx-universal/libnewt_head.dylib" "$2"
|
||||
bash macosx_codesign_zip.sh "$APP_DIR/$APP_NAME/Contents/Java/jogl-all-natives-macosx-universal.jar" "natives/macosx-universal/libjogl_desktop.dylib" "$2"
|
||||
codesign --force --options runtime --entitlements "$ENTITLEMENTS_BROWSER" --sign "$2" --timestamp --verbose "$APP_DIR/$APP_NAME/Contents/MacOS/JavaAppLauncher"
|
||||
codesign --force --options runtime --entitlements "$ENTITLEMENTS_BROWSER" --sign "$2" --timestamp --verbose "$APP_DIR/$APP_NAME"
|
||||
bash macosx_notarize.sh "$APP_DIR/$APP_NAME" "$2" $3 org.jcef.jcef $4 $5 $6
|
||||
|
||||
echo "Checking notarization validity"
|
||||
spctl -vvv --assess --type exec "$APP_DIR/$APP_NAME"
|
||||
retVal=$?
|
||||
if [ $retVal -ne 0 ]; then
|
||||
echo "Binaries are not correctly signed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Done signing binaries"
|
||||
|
@ -49,6 +49,6 @@ rm -f notarization.log
|
||||
echo ""
|
||||
|
||||
# staple
|
||||
xcrun stapler -v staple "$1"
|
||||
xcrun stapler staple -v "$1"
|
||||
|
||||
echo "##########################################################"
|
||||
|
Loading…
Reference in New Issue
Block a user