Skip to content

Commit a95dd6f

Browse files
Create install.sh
1 parent 56f0cad commit a95dd6f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

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)