File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments