Tidy packaging script and fix 'Connection Failed' dialog
This commit is contained in:
@@ -233,7 +233,7 @@ namespace OpenRa
|
|||||||
|
|
||||||
public void DrawDialog(string text)
|
public void DrawDialog(string text)
|
||||||
{
|
{
|
||||||
var w = renderer.MeasureText(text).X + 120;
|
var w = renderer.MeasureText2(text).X + 120;
|
||||||
var h = 100;
|
var h = 100;
|
||||||
var r = new Rectangle((Game.viewport.Width - w) / 2, (Game.viewport.Height - h) / 2, w, h);
|
var r = new Rectangle((Game.viewport.Width - w) / 2, (Game.viewport.Height - h) / 2, w, h);
|
||||||
DrawDialogBackground(r, "dialog");
|
DrawDialogBackground(r, "dialog");
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# OpenRA Packaging script for osx
|
# OpenRA Packaging script for osx
|
||||||
# Creates a .app bundle for OpenRA game, and a command line app for OpenRa server
|
# Creates a .app bundle for OpenRA game, and a command line app for OpenRa server
|
||||||
# Statically links all custom dlls into the executable; only requires Mono
|
# All dependencies are packaged inside the game bundle
|
||||||
# to run on a non-development machine
|
|
||||||
|
|
||||||
# List of game files to copy into the app bundle
|
# List of game files to copy into the app bundle
|
||||||
GAME_FILES="OpenRA shaders mods maps packaging/osx/settings.ini FreeSans.ttf FreeSansBold.ttf"
|
GAME_FILES="OpenRA shaders mods maps packaging/osx/settings.ini FreeSans.ttf FreeSansBold.ttf"
|
||||||
@@ -22,9 +21,7 @@ function patch_mono {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
for i in $LIBS; do
|
for i in $LIBS; do
|
||||||
if [ -e OpenRA.app/Contents/${i:9} ]; then
|
if [ ! -e OpenRA.app/Contents/${i:9} ]; then
|
||||||
echo "File already processed: "${i:9}
|
|
||||||
else
|
|
||||||
mkdir -p OpenRA.app/Contents/`dirname ${i:9}`
|
mkdir -p OpenRA.app/Contents/`dirname ${i:9}`
|
||||||
cp $i OpenRA.app/Contents/`dirname ${i:9}`
|
cp $i OpenRA.app/Contents/`dirname ${i:9}`
|
||||||
patch_mono OpenRA.app/Contents/${i:9}
|
patch_mono OpenRA.app/Contents/${i:9}
|
||||||
@@ -62,4 +59,7 @@ for i in $GAC_DYLIBS; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
cp -R /Library/Frameworks/Cg.Framework OpenRa.app/Contents/Frameworks/
|
cp -R /Library/Frameworks/Cg.Framework OpenRa.app/Contents/Frameworks/
|
||||||
cp -R /Library/Frameworks/SDL.Framework OpenRa.app/Contents/Frameworks/
|
cp -R /Library/Frameworks/SDL.Framework OpenRa.app/Contents/Frameworks/
|
||||||
|
|
||||||
|
# Fix permissions
|
||||||
|
chmod -R 755 OpenRA.app
|
||||||
Reference in New Issue
Block a user