Add mono 5.2 compatibility on macOS.

This commit is contained in:
Paul Chote 2017-08-22 19:07:11 +01:00
parent 6cbff13bfb
commit 715f7dda44

View File

@ -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"