Last active
November 21, 2016 21:37
-
-
Save lordcodes/5624f4a6308d41f2551d1e1dbe1e8d2d to your computer and use it in GitHub Desktop.
Script to install the Unity Mac Editor, written for use on Travis.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
BASE_URL=http://netstorage.unity3d.com/unity | |
HASH=649f48bbbf0f | |
VERSION=5.4.1f1 | |
download() { | |
url="$BASE_URL/$HASH/$package" | |
echo "Downloading from $url: " | |
curl -o `basename "$package"` "$url" | |
} | |
install() { | |
package=$1 | |
download "$package" | |
echo "Installing "`basename "$package"` | |
sudo installer -dumplog -package `basename "$package"` -target / | |
} | |
install "MacEditorInstaller/Unity-$VERSION.pkg" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment