summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexe2app.bash21
1 files 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
<string>$BUNDLE_ID</string>
<key>CFBundleVersion</key>
<string>$VERSION</string>
+<key>CFBundleShortVersionString</key>
+<string>$VERSION</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
@@ -96,6 +107,12 @@ cat > "$APP/Contents/Info.plist" << EOF
<string>$EXENAME</string>
<key>CFBundleIconFile</key>
<string>$APPNAME.icns</string>
+<key>CFBundleGetInfoString</key>
+<string>$VERSION $COPYRIGHT</string>
+<key>NSHumanReadableCopyright</key>
+<string>$COPYRIGHT</string>
+<key>LSMinimumSystemVersion</key>
+<string>$MINIMUM</string>
</dict>
</plist>
EOF