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