Mercurial > dwindows
view 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 |
line wrap: on
line source
#!/bin/sh PLATFORM=`uname -s` RELEASE=`uname -r` REQUIRED=11.0.0 SRCDIR=$1 BINNAME=$2 IDENTITY=$3 if [ $PLATFORM = "Darwin" ] then mkdir -p $BINNAME.app/Contents/MacOS mkdir -p $BINNAME.app/Contents/Resources cat $SRCDIR/mac/Info.template | sed s/APPNAME/$BINNAME/ > $BINNAME.app/Contents/Info.plist cp -f $SRCDIR/mac/PkgInfo $BINNAME.app/Contents cp -f $SRCDIR/mac/file.png $BINNAME.app/Contents/Resources 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 [ "$(printf '%s\n' "$REQUIRED" "$RELEASE" | sort -n | head -n1)" = "$REQUIRED" ]; 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 else echo "Signing code with identity: $IDENTITY" codesign $DEEP -s "$IDENTITY" $BINNAME.app fi fi