From: Jim Procter Date: Wed, 11 Sep 2024 14:25:52 +0000 (+0100) Subject: JAL-4428 codesign jnilibs X-Git-Tag: Release_2_11_4_0~11^2~1^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e428c76d94fdfb3c8d3783b62c14ef555e693adc;p=jalview.git JAL-4428 codesign jnilibs --- 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