Custom game wrapper for osx. Point it at a standard game dir, and it will run it without needing any other dependencies installed.
Internal mono works; still uses system SDL and Cg
This commit is contained in:
12
packaging/osx/OpenRA.app/Contents/Info.plist
Executable file
12
packaging/osx/OpenRA.app/Contents/Info.plist
Executable 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>
|
||||
16
packaging/osx/OpenRA.app/Contents/MacOS/OpenRA
Executable file
16
packaging/osx/OpenRA.app/Contents/MacOS/OpenRA
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Where is the game we are trying to load?
|
||||
GAME_DIR="/Users/paul/src/OpenRA/"
|
||||
|
||||
# Find where we are and what we want to run
|
||||
APP_PATH=`echo $0 | awk '{split($0,patharr,"/"); idx=1; while(patharr[idx+3] != "") { if (patharr[idx] != "/") {printf("%s/", patharr[idx]); idx++ }} }'`
|
||||
EXE_DIR="$APP_PATH/Contents/MacOS/"
|
||||
|
||||
# Override paths so mono can find itself and the libraries it depends on
|
||||
export MONO_PATH="$APP_PATH/Contents/Frameworks/Mono.framework/Versions/2.6.3/lib/"
|
||||
export LD_LIBRARY_PATH="$MONO":"$MONO_PATH"
|
||||
export MONO_LOG_LEVEL=debug
|
||||
# Run the game
|
||||
cd $GAME_DIR
|
||||
${EXE_DIR}mono OpenRA.Game.exe
|
||||
BIN
packaging/osx/OpenRA.app/Contents/Resources/OpenRA.icns
Executable file
BIN
packaging/osx/OpenRA.app/Contents/Resources/OpenRA.icns
Executable file
Binary file not shown.
Reference in New Issue
Block a user