Skip to content

Commit 77954a7

Browse files
committed
Merge branch 'master' of https://github.com/MystikalPooka/Unity-Visual-Behavior-Tree into Debugger-2
2 parents 8860f59 + a95dd6f commit 77954a7

File tree

4 files changed

+79
-1
lines changed

4 files changed

+79
-1
lines changed

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: objective-c
2+
osx_image: xcode8.3
3+
rvm:
4+
- 2.2
5+
before_install:
6+
- chmod a+x ./install.sh
7+
- chmod a+x ./build.sh
8+
install:
9+
- ./install.sh
10+
script:
11+
- ./build.sh
12+
notifications:
13+
email: false

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--- This Readme was made using Dillinger online markdown editor https://dillinger.io/--->
2-
2+
[![Build Status](https://travis-ci.org/MystikalPooka/Unity-Visual-Behavior-Tree.svg?branch=master)](https://travis-ci.org/MystikalPooka/Unity-Visual-Behavior-Tree)
33
# Unity-Visual-Behavior-Tree
44
Visual Scripting Behavior Tree Tool for Unity 2017.3.x
55

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

install.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#! /bin/sh
2+
3+
BASE_URL=http://netstorage.unity3d.com/unity
4+
HASH=fc1d3344e6ea
5+
VERSION=2017.3.1f1
6+
7+
download() {
8+
file=$1
9+
url="$BASE_URL/$HASH/$package"
10+
11+
echo "Downloading from $url: "
12+
curl -o `basename "$package"` "$url"
13+
}
14+
15+
install() {
16+
package=$1
17+
download "$package"
18+
19+
echo "Installing "`basename "$package"`
20+
sudo installer -dumplog -package `basename "$package"` -target /
21+
}
22+
23+
# See $BASE_URL/$HASH/unity-$VERSION-$PLATFORM.ini for complete list
24+
# of available packages, where PLATFORM is `osx` or `win`
25+
26+
install "MacEditorInstaller/Unity-$VERSION.pkg"
27+
install "MacEditorTargetInstaller/UnitySetup-Windows-Support-for-Editor-$VERSION.pkg"
28+
install "MacEditorTargetInstaller/UnitySetup-Mac-Support-for-Editor-$VERSION.pkg"
29+
install "MacEditorTargetInstaller/UnitySetup-Linux-Support-for-Editor-$VERSION.pkg"

0 commit comments

Comments
 (0)