From 715f7dda448027567a82553c3fb58c6d0a6b29fa Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Tue, 22 Aug 2017 19:07:11 +0100 Subject: [PATCH] Add mono 5.2 compatibility on macOS. --- launch-game.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/launch-game.sh b/launch-game.sh index 177e077..a9f2d4a 100755 --- a/launch-game.sh +++ b/launch-game.sh @@ -8,6 +8,11 @@ command -v mono >/dev/null 2>&1 || { echo >&2 "The OpenRA mod template requires TEMPLATE_LAUNCHER=$(python -c "import os; print(os.path.realpath('$0'))") TEMPLATE_ROOT=$(dirname "${TEMPLATE_LAUNCHER}") +# Mono >= 5.2 on macOS default mono to 64bit. Force 32 bit until the engine is ready +if [ "$(uname -s)" = "Darwin" ] && command -v mono32 >/dev/null 2>&1; then + alias mono=mono32 +fi + # shellcheck source=mod.config . "${TEMPLATE_ROOT}/mod.config"