Skip to content

Commit 50f8509

Browse files
committed
Fixed windows TUIO compilation script.
1 parent b3fb324 commit 50f8509

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Modules/TUIO/Build/compile.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ printf "\n\e[32mCompiling TUIOSharp.\e[39m\n"
22

33
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
44
SLN="$DIR/../TUIOsharp/TUIOsharp.sln"
5+
WIN="$(expr substr $(uname -s) 1 10)"
56

67
# Mac
78
if [ "$(uname)" == "Darwin" ]; then
89
/Applications/Unity/MonoDevelop.app/Contents/MacOS/mdtool build --t:Clean --c:Release $SLN
910
/Applications/Unity/MonoDevelop.app/Contents/MacOS/mdtool build --t:Build --c:Release $SLN
1011

1112
# Windows
12-
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
13+
elif [ "$WIN" == "MINGW32_NT" ] || [ "$WIN" == "MINGW64_NT" ]; then
1314
/c/Windows/Microsoft.NET/Framework/v4.0.30319/msbuild.exe $SLN -p:Configuration=Release -clp:ErrorsOnly
1415
fi
1516

0 commit comments

Comments
 (0)