annotate mac/finishup.sh @ 2988:dfab2dfa9bc1

Check DW_FEATURE_HTML_MESSAGE to decide if the raw html widget should have the javascript code or not. This prevents error popups when clicking the "dwtest" text when using the IE HTML widget.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 04 Apr 2023 01:08:14 +0000
parents 8a2079224bc4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
443
e99cd6e45c0b Need to have a application package directory for binaries to properly run
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
1 #!/bin/sh
e99cd6e45c0b Need to have a application package directory for binaries to properly run
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
2 PLATFORM=`uname -s`
2968
c0def0076ac4 Mac: Initial attempt to fix failures due to missing codesign --deep.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 2967
diff changeset
3 RELEASE=`uname -r`
2969
8a2079224bc4 Mac: Second attempt to fix codesign --deep.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 2968
diff changeset
4 REQUIRED=11.0.0
2966
48cfd7cb37a6 Add MacOS signing support with environment variable: CODESIGNIDENTITY.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 2944
diff changeset
5 SRCDIR=$1
48cfd7cb37a6 Add MacOS signing support with environment variable: CODESIGNIDENTITY.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 2944
diff changeset
6 BINNAME=$2
48cfd7cb37a6 Add MacOS signing support with environment variable: CODESIGNIDENTITY.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 2944
diff changeset
7 IDENTITY=$3
443
e99cd6e45c0b Need to have a application package directory for binaries to properly run
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
8
e99cd6e45c0b Need to have a application package directory for binaries to properly run
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
9 if [ $PLATFORM = "Darwin" ]
e99cd6e45c0b Need to have a application package directory for binaries to properly run
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents:
diff changeset
10 then
2967
fec8528fcbe8 Mac: Followup the CODESIGN changes, missed a couple variable name changes.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 2966
diff changeset
11 mkdir -p $BINNAME.app/Contents/MacOS
fec8528fcbe8 Mac: Followup the CODESIGN changes, missed a couple variable name changes.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 2966
diff changeset
12 mkdir -p $BINNAME.app/Contents/Resources
639
06be879f5137 Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 443
diff changeset
13
2966
48cfd7cb37a6 Add MacOS signing support with environment variable: CODESIGNIDENTITY.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 2944
diff changeset
14 cat $SRCDIR/mac/Info.template | sed s/APPNAME/$BINNAME/ > $BINNAME.app/Contents/Info.plist
48cfd7cb37a6 Add MacOS signing support with environment variable: CODESIGNIDENTITY.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 2944
diff changeset
15 cp -f $SRCDIR/mac/PkgInfo $BINNAME.app/Contents
48cfd7cb37a6 Add MacOS signing support with environment variable: CODESIGNIDENTITY.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 2944
diff changeset
16 cp -f $SRCDIR/mac/file.png $BINNAME.app/Contents/Resources
48cfd7cb37a6 Add MacOS signing support with environment variable: CODESIGNIDENTITY.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 2944
diff changeset
17 cp -f $SRCDIR/mac/folder.png $BINNAME.app/Contents/Resources
48cfd7cb37a6 Add MacOS signing support with environment variable: CODESIGNIDENTITY.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 2944
diff changeset
18 cp -f $SRCDIR/image/test.png $BINNAME.app/Contents/Resources
48cfd7cb37a6 Add MacOS signing support with environment variable: CODESIGNIDENTITY.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 2944
diff changeset
19 cp -f $BINNAME $BINNAME.app/Contents/MacOS
2969
8a2079224bc4 Mac: Second attempt to fix codesign --deep.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 2968
diff changeset
20 if [ "$(printf '%s\n' "$REQUIRED" "$RELEASE" | sort -n | head -n1)" = "$REQUIRED" ]; then
2968
c0def0076ac4 Mac: Initial attempt to fix failures due to missing codesign --deep.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 2967
diff changeset
21 DEEP="--deep"
c0def0076ac4 Mac: Initial attempt to fix failures due to missing codesign --deep.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 2967
diff changeset
22 fi
2074
1a196ada0bc9 Mac: Add safety checks. Check bundleIdentifier is not nil before calling
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 879
diff changeset
23 # Check if there is a certificate to sign with...
2966
48cfd7cb37a6 Add MacOS signing support with environment variable: CODESIGNIDENTITY.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 2944
diff changeset
24 if [ -z "$IDENTITY" ]; then
48cfd7cb37a6 Add MacOS signing support with environment variable: CODESIGNIDENTITY.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 2944
diff changeset
25 echo "No identity set signing AdHoc."
2968
c0def0076ac4 Mac: Initial attempt to fix failures due to missing codesign --deep.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 2967
diff changeset
26 codesign $DEEP -s "-" $BINNAME.app
2966
48cfd7cb37a6 Add MacOS signing support with environment variable: CODESIGNIDENTITY.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 2944
diff changeset
27 else
48cfd7cb37a6 Add MacOS signing support with environment variable: CODESIGNIDENTITY.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 2944
diff changeset
28 echo "Signing code with identity: $IDENTITY"
2968
c0def0076ac4 Mac: Initial attempt to fix failures due to missing codesign --deep.
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 2967
diff changeset
29 codesign $DEEP -s "$IDENTITY" $BINNAME.app
2074
1a196ada0bc9 Mac: Add safety checks. Check bundleIdentifier is not nil before calling
bsmith@81767d24-ef19-dc11-ae90-00e081727c95
parents: 879
diff changeset
30 fi
639
06be879f5137 Support for building with GTK+ on Mac OSX
mhessling@81767d24-ef19-dc11-ae90-00e081727c95
parents: 443
diff changeset
31 fi