JAL-4418 JAL-4428 CHANNEL=RELEASE has a different path for the jni jars
authorJim Procter <jprocter@dundee.ac.uk>
Tue, 17 Sep 2024 22:23:57 +0000 (23:23 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Tue, 17 Sep 2024 22:23:57 +0000 (23:23 +0100)
utils/osx_signing/sign_and_staple_dmg.sh

index d79c04d..e6c5d54 100755 (executable)
@@ -471,8 +471,15 @@ if [ "$SIGN" = 1 ]; then
   CWD=$(pwd)
   mycommand $DOSIGN mkdir ${TEMPDIR}/jarsign
   mycommand $DOSIGN cd ${TEMPDIR}/jarsign
-
-  JFILE="${APPPATH}/Contents/Resources/app/alt/libquaqua-8.0.jnilib.jar"
+  
+  # for TEST-RELEASE or DEVELOP
+  JARPATH=alt
+  # if it is a release build then this happens 
+  if [ -d "${APPPATH}/Contents/Resources/app/release" ]; then
+       JARPATH=release
+  fi
+  
+  JFILE="${APPPATH}/Contents/Resources/app/${JARPATH}/libquaqua-8.0.jnilib.jar"
   mycommand $DOSIGN jar xf "$JFILE" 
 
   FILE="libquaqua.jnilib"
@@ -484,7 +491,7 @@ if [ "$SIGN" = 1 ]; then
   mycommand $DOSIGN rm "${JFILE}.old"
 
 
-  JFILE="${APPPATH}/Contents/Resources/app/alt/libquaqua64-8.0.jnilib.jar"
+  JFILE="${APPPATH}/Contents/Resources/app/${JARPATH}/libquaqua64-8.0.jnilib.jar"
   mycommand $DOSIGN jar xf "$JFILE" 
 
   FILE="libquaqua64.jnilib"