forked from watson-developer-cloud/unity-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstallUnity.sh
More file actions
40 lines (31 loc) · 922 Bytes
/
Copy pathinstallUnity.sh
File metadata and controls
40 lines (31 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#! /bin/sh
set -e
BASE_URL=http://netstorage.unity3d.com/unity
HASH=38b4efef76f0
VERSION=5.5.0f3
download() {
file=$1
url="$BASE_URL/$HASH/$package"
echo "Downloading from $url: "
cd Unity
curl -o `basename "$package"` "$url"
cd ../
}
install() {
package=$1
filename=`basename "$package"`
packagePath="Unity/$filename"
if [ ! -f $packagePath ] ; then
echo "$packagePath not found. downloading `basename "$packagePath"`"
download "$package"
fi
echo "Installing "`basename "$package"`
sudo installer -dumplog -package $packagePath -target /
}
if [ ! -d "Unity" ] ; then
mkdir -p -m 777 Unity
fi
install "MacEditorInstaller/Unity-$VERSION.pkg"
install "MacEditorTargetInstaller/UnitySetup-Windows-Support-for-Editor-$VERSION.pkg"
#"Mac Target Support - now part of Editor as default player instead of web player"
#install "MacEditorTargetInstaller/UnitySetup-Mac-Support-for-Editor-$VERSION.pkg"