changeset 2968:c0def0076ac4

Mac: Initial attempt to fix failures due to missing codesign --deep.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 19 Mar 2023 18:09:20 +0000
parents fec8528fcbe8
children 8a2079224bc4
files mac/finishup.sh
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mac/finishup.sh	Tue Mar 14 21:04:11 2023 +0000
+++ b/mac/finishup.sh	Sun Mar 19 18:09:20 2023 +0000
@@ -1,5 +1,6 @@
 #!/bin/sh
 PLATFORM=`uname -s`
+RELEASE=`uname -r`
 SRCDIR=$1
 BINNAME=$2
 IDENTITY=$3
@@ -15,12 +16,15 @@
     cp -f $SRCDIR/mac/folder.png $BINNAME.app/Contents/Resources
     cp -f $SRCDIR/image/test.png $BINNAME.app/Contents/Resources
     cp -f $BINNAME $BINNAME.app/Contents/MacOS
+    if [ "$RELEASE" -gt "10.99" ]; then
+       DEEP="--deep"
+    fi
     # Check if there is a certificate to sign with...
     if [ -z "$IDENTITY" ]; then
         echo "No identity set signing AdHoc."
-        codesign --deep -s "-" $BINNAME.app
+        codesign $DEEP -s "-" $BINNAME.app
     else
         echo "Signing code with identity: $IDENTITY"
-        codesign --deep -s "$IDENTITY" $BINNAME.app
+        codesign $DEEP -s "$IDENTITY" $BINNAME.app
     fi
 fi