Tidy packaging script and fix 'Connection Failed' dialog

This commit is contained in:
pchote
2010-02-22 03:15:35 +13:00
parent d1a871ff6f
commit f8390864ac
2 changed files with 7 additions and 7 deletions

View File

@@ -233,7 +233,7 @@ namespace OpenRa
public void DrawDialog(string text)
{
var w = renderer.MeasureText(text).X + 120;
var w = renderer.MeasureText2(text).X + 120;
var h = 100;
var r = new Rectangle((Game.viewport.Width - w) / 2, (Game.viewport.Height - h) / 2, w, h);
DrawDialogBackground(r, "dialog");

View File

@@ -1,8 +1,7 @@
#!/bin/sh
# OpenRA Packaging script for osx
# 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
# to run on a non-development machine
# All dependencies are packaged inside the game 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"
@@ -22,9 +21,7 @@ function patch_mono {
fi
done
for i in $LIBS; do
if [ -e OpenRA.app/Contents/${i:9} ]; then
echo "File already processed: "${i:9}
else
if [ ! -e OpenRA.app/Contents/${i:9} ]; then
mkdir -p OpenRA.app/Contents/`dirname ${i:9}`
cp $i OpenRA.app/Contents/`dirname ${i:9}`
patch_mono OpenRA.app/Contents/${i:9}
@@ -62,4 +59,7 @@ for i in $GAC_DYLIBS; do
done
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