From e428c76d94fdfb3c8d3783b62c14ef555e693adc Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 11 Sep 2024 15:25:52 +0100 Subject: [PATCH] JAL-4428 codesign jnilibs --- utils/osx_signing/sign_and_staple_dmg.sh | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/utils/osx_signing/sign_and_staple_dmg.sh b/utils/osx_signing/sign_and_staple_dmg.sh index e2bde9b..d79c04d 100755 --- a/utils/osx_signing/sign_and_staple_dmg.sh +++ b/utils/osx_signing/sign_and_staple_dmg.sh @@ -466,6 +466,41 @@ if [ "$SIGN" = 1 ]; then mycommand $DOSIGN codesign --remove-signature --force --deep -vvvv -s "$DEVELOPERID" --options runtime --entitlements "$ENTITLEMENTSFILE" "$FILE" mycommand $DOSIGN codesign --verify --deep -v "$FILE" + + # Need to unpack and sign everything in here too + CWD=$(pwd) + mycommand $DOSIGN mkdir ${TEMPDIR}/jarsign + mycommand $DOSIGN cd ${TEMPDIR}/jarsign + + JFILE="${APPPATH}/Contents/Resources/app/alt/libquaqua-8.0.jnilib.jar" + mycommand $DOSIGN jar xf "$JFILE" + + FILE="libquaqua.jnilib" + mycommand $DOSIGN codesign --remove-signature --force --deep -vvvv -s "$DEVELOPERID" --options runtime --entitlements "$ENTITLEMENTSFILE" "$FILE" + mycommand $DOSIGN codesign --verify --deep -v "$FILE" + + mycommand $DOSIGN mv "$JFILE" "${JFILE}.old" + mycommand $DOSIGN jar cf "$JFILE" * + mycommand $DOSIGN rm "${JFILE}.old" + + + JFILE="${APPPATH}/Contents/Resources/app/alt/libquaqua64-8.0.jnilib.jar" + mycommand $DOSIGN jar xf "$JFILE" + + FILE="libquaqua64.jnilib" + mycommand $DOSIGN codesign --remove-signature --force --deep -vvvv -s "$DEVELOPERID" --options runtime --entitlements "$ENTITLEMENTSFILE" "$FILE" + mycommand $DOSIGN codesign --verify --deep -v "$FILE" + + mycommand $DOSIGN mv "$JFILE" "${JFILE}.old" + mycommand $DOSIGN jar cf "$JFILE" * + mycommand $DOSIGN rm "${JFILE}.old" + + mycommand $DOSIGN codesign --remove-signature --force --deep -vvvv -s "$DEVELOPERID" --options runtime --entitlements "$ENTITLEMENTSFILE" "$JFILE" + mycommand $DOSIGN codesign --verify --deep -v "$JFILE" + + mycommand $DOSIGN cd $CWD + mycommand $DOSIGN rm -Rf ${TEMPDIR}/jarsign + FILE="${APPPATH}/Contents/MacOS/JavaApplicationStub" mycommand $DOSIGN codesign --remove-signature --force --deep -vvvv -s "$DEVELOPERID" --options runtime --entitlements "$ENTITLEMENTSFILE" "$FILE" fi -- 1.7.10.2