Skip to content

Commit 56f0cad

Browse files
Create build.sh
1 parent 241cf5b commit 56f0cad

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

build.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#! /bin/sh
2+
3+
project="unity-visual-behavior-tree"
4+
5+
echo "Attempting to build $project for Windows"
6+
/Applications/Unity/Unity.app/Contents/MacOS/Unity \
7+
-batchmode \
8+
-nographics \
9+
-silent-crashes \
10+
-logFile $(pwd)/unity.log \
11+
-projectPath $(pwd) \
12+
-buildWindowsPlayer "$(pwd)/Build/windows/$project.exe" \
13+
-quit
14+
15+
echo "Attempting to build $project for OS X"
16+
/Applications/Unity/Unity.app/Contents/MacOS/Unity \
17+
-batchmode \
18+
-nographics \
19+
-silent-crashes \
20+
-logFile $(pwd)/unity.log \
21+
-projectPath $(pwd) \
22+
-buildOSXUniversalPlayer "$(pwd)/Build/osx/$project.app" \
23+
-quit
24+
25+
echo "Attempting to build $project for Linux"
26+
/Applications/Unity/Unity.app/Contents/MacOS/Unity \
27+
-batchmode \
28+
-nographics \
29+
-silent-crashes \
30+
-logFile $(pwd)/unity.log \
31+
-projectPath $(pwd) \
32+
-buildLinuxUniversalPlayer "$(pwd)/Build/linux/$project.exe" \
33+
-quit
34+
35+
echo 'Logs from build'
36+
cat $(pwd)/unity.log

0 commit comments

Comments
 (0)