From af1c9aca3072a6593e1feb40f2e630bc406f7753 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 23 Aug 2014 10:00:46 +1200 Subject: [PATCH] Set the package version in the OS X .app. --- packaging/osx/buildpackage.sh | 4 ++++ .../Contents/{Info.plist => Info.plist.template} | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) rename packaging/osx/template.app/Contents/{Info.plist => Info.plist.template} (89%) diff --git a/packaging/osx/buildpackage.sh b/packaging/osx/buildpackage.sh index d0b96a95e9..fcaae63b82 100755 --- a/packaging/osx/buildpackage.sh +++ b/packaging/osx/buildpackage.sh @@ -22,6 +22,10 @@ rm OpenRA.app/Contents/Resources/OpenRA.ico rm OpenRA.app/Contents/Resources/OpenRA.Editor.exe rm OpenRA.app/Contents/Resources/OpenRA.CrashDialog.exe +# Set version string +sed "s/{DEV_VERSION}/${1}/" OpenRA.app/Contents/Info.plist.template > OpenRA.app/Contents/Info.plist +rm OpenRA.app/Contents/Info.plist.template + # Package app bundle into a zip and clean up zip OpenRA-$1 -r -9 OpenRA.app --quiet mv OpenRA-$1.zip $4 diff --git a/packaging/osx/template.app/Contents/Info.plist b/packaging/osx/template.app/Contents/Info.plist.template similarity index 89% rename from packaging/osx/template.app/Contents/Info.plist rename to packaging/osx/template.app/Contents/Info.plist.template index e87e49f3a1..0b7682304e 100644 --- a/packaging/osx/template.app/Contents/Info.plist +++ b/packaging/osx/template.app/Contents/Info.plist.template @@ -11,7 +11,7 @@ CFBundleIconFile OpenRA.icns CFBundleIdentifier - org.open-ra.launcher + net.openra.launcher CFBundleInfoDictionaryVersion 6.0 CFBundleName @@ -19,11 +19,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.0 + {DEV_VERSION} CFBundleSignature ???? CFBundleVersion - 1 + {DEV_VERSION} LSMinimumSystemVersion 10.5 NSMainNibFile