Mercurial > dwindows
view mac/finishup.sh @ 2985:e5d2c74b1a51
Android: Fixed a big in dw_window_get_text() introduced at some point.
Also added a number of safety checks to prevent calling into kotlin with
NULL.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 27 Mar 2023 08:46:23 +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