Skip to content

Instantly share code, notes, and snippets.

@lordcodes
Last active November 21, 2016 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lordcodes/5624f4a6308d41f2551d1e1dbe1e8d2d to your computer and use it in GitHub Desktop.
Save lordcodes/5624f4a6308d41f2551d1e1dbe1e8d2d to your computer and use it in GitHub Desktop.
Script to install the Unity Mac Editor, written for use on Travis.
#! /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