Set the package version in the OS X .app.

This commit is contained in:
Paul Chote
2014-08-23 10:00:46 +12:00
parent 6fcd4c3605
commit af1c9aca30
2 changed files with 7 additions and 3 deletions

View File

@@ -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.Editor.exe
rm OpenRA.app/Contents/Resources/OpenRA.CrashDialog.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 # Package app bundle into a zip and clean up
zip OpenRA-$1 -r -9 OpenRA.app --quiet zip OpenRA-$1 -r -9 OpenRA.app --quiet
mv OpenRA-$1.zip $4 mv OpenRA-$1.zip $4

View File

@@ -11,7 +11,7 @@
<key>CFBundleIconFile</key> <key>CFBundleIconFile</key>
<string>OpenRA.icns</string> <string>OpenRA.icns</string>
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
<string>org.open-ra.launcher</string> <string>net.openra.launcher</string>
<key>CFBundleInfoDictionaryVersion</key> <key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string> <string>6.0</string>
<key>CFBundleName</key> <key>CFBundleName</key>
@@ -19,11 +19,11 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.0</string> <string>{DEV_VERSION}</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1</string> <string>{DEV_VERSION}</string>
<key>LSMinimumSystemVersion</key> <key>LSMinimumSystemVersion</key>
<string>10.5</string> <string>10.5</string>
<key>NSMainNibFile</key> <key>NSMainNibFile</key>