Skip to content

Instantly share code, notes, and snippets.

@mhevery
Created February 20, 2015 20:43
Show Gist options
  • Save mhevery/2473157176413873ef60 to your computer and use it in GitHub Desktop.
Save mhevery/2473157176413873ef60 to your computer and use it in GitHub Desktop.
#!/bin/sh
curl http://storage.googleapis.com/dart-archive/channels/dev/release/latest/editor/darteditor-macos-x64.zip > ~/Downloads/darteditor-macos-64-dev.zip;
echo Fetched new dart version $(unzip -p ~/Downloads/darteditor-macos-64-dev.zip dart/dart-sdk/version)
rm -rf /Applications/dart-dev ;
unzip ~/Downloads/darteditor-macos-64-dev.zip -d /tmp > /dev/null
mv /tmp/dart /Applications/dart-dev
curl http://storage.googleapis.com/dart-archive/channels/stable/release/latest/editor/darteditor-macos-x64.zip > ~/Downloads/darteditor-macos-64.zip;
echo Fetched new dart version $(unzip -p ~/Downloads/darteditor-macos-64.zip dart/dart-sdk/version)
rm -rf /Applications/dart ;
unzip ~/Downloads/darteditor-macos-64.zip -d /Applications/ > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment