Mercurial > dwindows
view mac/finishup.sh @ 3005:522ef24b0aba default tip
GTK4: Fix even more deprecation warnings in GTK 4.10 and later.
Migrate to GtkAlertDialog for 4.10 from GtkMessageDialog.
Still need to center the dialog or something.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 20 Dec 2023 05:17:54 +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