Skip to content

Instantly share code, notes, and snippets.

@sunetos
Created May 22, 2014 14:05
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 sunetos/d887188e1429b11fd4da to your computer and use it in GitHub Desktop.
Save sunetos/d887188e1429b11fd4da to your computer and use it in GitHub Desktop.
Update to latest Julia nightly on a Mac
#!/bin/sh
VERSION="0.3.0"
URL="http://status.julialang.org/download/osx10.7+"
APP="/Applications/Julia-$VERSION-prerelease.app"
echo "Downloading Julia v$VERSION nightly..."
dmg="/tmp/julia-v$VERSION-installer.dmg"
curl -fsSL "$URL" > "$dmg"
echo "Installing new DMG image..."
hdiutil attach -quiet "$dmg"
dmgapp=`find /Volumes/Julia -name 'Julia-*.app' 2> /dev/null`
tag=`basename "$dmgapp" .app`
cp -R $installer "$dmgapp" "$APP"
hdiutil detach -quiet "$dmg"
rm "$dmg"
echo "Successfully installed $tag."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment