Move the osx-packaging script inside the launcher xcode project

This commit is contained in:
Paul Chote
2010-04-17 02:00:26 +12:00
parent df521bc9ed
commit 47ccd80b14
7 changed files with 54 additions and 34 deletions

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleIdentifier</key>
<string>OpenRA</string>
<key>CFBundleExecutable</key>
<string>OpenRA</string>
<key>CFBundleIconFile</key>
<string>OpenRa.icns</string>
</dict>
</plist>

View File

@@ -0,0 +1,8 @@
#!/bin/sh
# Application-launcher for OpenRA.
# Executes the game binary inside the ../Resources directory with the correct working directory
# Based on the file generated by the mono mkbundle utility
APP_PATH=`echo $0 | awk '{split($0,patharr,"/"); idx=1; while(patharr[idx+3] != "") { if (patharr[idx] != "/") {printf("%s/", patharr[idx]); idx++ }} }'`
cd "$APP_PATH/Contents/Resources"
./OpenRA $@