forked from mohan-cao/Bad-Manor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
executable file
·26 lines (22 loc) · 1.58 KB
/
install.sh
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
#! /bin/sh
# Download Unity3D installer into the container
# The below link will need to change depending on the version, this one is for 5.5.1
# Refer to https://unity3d.com/get-unity/download/archive and find the link pointed to by Mac "Unity Editor"
echo 'Downloading Unity 5.3.5 pkg:'
curl --retry 5 -o Unity.pkg https://download.unity3d.com/download_unity/960ebf59018a/MacEditorInstaller/Unity-5.3.5f1.pkg
if [ $? -ne 0 ]; then { echo "Download failed"; exit $?; } fi
# In Unity 5 they split up build platform support into modules which are installed separately
# By default, only Mac OSX support is included in the original editor package; Windows, Linux, iOS, Android, and others are separate
# In this example we download Windows support. Refer to http://unity.grimdork.net/ to see what form the URLs should take
echo 'Downloading Unity 5.3.5 Windows Build Support pkg:'
curl --retry 5 -o Unity_win.pkg https://download.unity3d.com/download_unity/960ebf59018a/MacEditorTargetInstaller/UnitySetup-Windows-Support-for-Editor-5.3.5f1.pkg
if [ $? -ne 0 ]; then { echo "Download failed"; exit $?; } fi
curl --retry 5 -o Unity_mac.pkg https://download.unity3d.com/download_unity/960ebf59018a/MacEditorTargetInstaller/UnitySetup-Mac-Support-for-Editor-5.3.5f1.pkg
if [ $? -ne 0 ]; then { echo "Download failed"; exit $?; } fi
# Run installer(s)
echo 'Installing Unity.pkg'
sudo installer -dumplog -package Unity.pkg -target /
echo 'Installing Unity_win.pkg'
sudo installer -dumplog -package Unity_win.pkg -target /
# echo 'Installing Unity_mac.pkg'
# sudo installer -dumplog -package Unity_mac.pkg -target /