From ebb58f1f7bcb583feb79deb6bb1a428c2f0e406c Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 15 Jan 2024 23:13:38 +0000 Subject: Added copyright and minimum version --- exe2app.bash | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/exe2app.bash b/exe2app.bash index f1c8b7f..d7c3c69 100755 --- a/exe2app.bash +++ b/exe2app.bash @@ -12,6 +12,8 @@ function usage() echo " -v version" echo " -n bundle_identifier" echo " -c creator_code (4 chars)" + echo " -p copyright" + echo " -m minimum_version" } function log() @@ -19,7 +21,7 @@ function log() echo "$SCR: $*" } -while getopts x:i:o:v:n:c: arg ; do +while getopts x:i:o:v:n:c:p:m: arg ; do case "$arg" in x) EXE="$OPTARG" @@ -39,6 +41,12 @@ while getopts x:i:o:v:n:c: arg ; do c) CREATOR="$OPTARG" ;; + p) + COPYRIGHT="$OPTARG" + ;; + m) + MINIMUM="$OPTARG" + ;; *) usage exit 1 @@ -47,7 +55,8 @@ while getopts x:i:o:v:n:c: arg ; do done if [ -z "$EXE" -o -z "$ICON" -o -z "$APP" \ - -o -z "$VERSION" -o -z "$BUNDLE_ID" -o -z "$CREATOR" ] ; then + -o -z "$VERSION" -o -z "$BUNDLE_ID" -o -z "$CREATOR" \ + -o -z "$COPYRIGHT" ] ; then usage exit 1 fi @@ -88,6 +97,8 @@ cat > "$APP/Contents/Info.plist" << EOF $BUNDLE_ID CFBundleVersion $VERSION +CFBundleShortVersionString +$VERSION CFBundlePackageType APPL CFBundleSignature @@ -96,6 +107,12 @@ cat > "$APP/Contents/Info.plist" << EOF $EXENAME CFBundleIconFile $APPNAME.icns +CFBundleGetInfoString +$VERSION $COPYRIGHT +NSHumanReadableCopyright +$COPYRIGHT +LSMinimumSystemVersion +$MINIMUM EOF -- cgit v1.2.3