1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00
Files
OpenRCT2/build.sh
Miso Zmiric (Mike Squinter) 4c06ffa2a0 build g2.dat as part of mingw build
2015-06-03 03:13:35 +01:00

27 lines
496 B
Bash
Executable File

#!/bin/bash
set -e
if [[ ! -d build ]]; then
mkdir -p build
fi
pushd build
cmake -DCMAKE_TOOLCHAIN_FILE=../CMakeLists_mingw.txt -DCMAKE_BUILD_TYPE=Debug ..
make
popd
echo Building: data/g2.dat
./build_g2.sh > /dev/null 2>&1
if [[ ! -h openrct2.dll ]]; then
ln -s build/openrct2.dll openrct2.dll
fi
if [[ -t 1 ]]; then
echo -e "\nDone! Run OpenRCT2 by typing:\n\n\033[95mwine openrct2.exe\n\033[0m"
else
echo -e "\nDone! Run OpenRCT2 by typing:\n\nwine openrct2.exe\n"
fi