If you do any open source development on Mac, you're probably using Homebrew. (If you haven't heard of Homebrew, read up here.)

I've created a Homebrew formula that will install the Dart SDK, Dart Editor, and optionally content_shell for headless browser testing.

Step 1: "tap" my Homebrew repository to add the dart-editor formula to your Homebrew installation.

~/> brew tap kevmoo/kevmoo

Cloning into '/usr/local/Library/Taps/kevmoo-kevmoo'...
remote: Counting objects: 227, done.
remote: Compressing objects: 100% (154/154), done.
remote: Total 227 (delta 73), reused 225 (delta 71)
Receiving objects: 100% (227/227), 27.55 KiB | 0 bytes/s, done.
Resolving deltas: 100% (73/73), done.
Checking connectivity... done
Tapped 2 formula

Step 2: Install dart-editor. (Add the optional --with-content-shell flag if you like.)

~/> brew install dart-editor --with-content-shell

==> Downloading https://gsdview.appspot.com/dart-archive/channels/dev/release/30821/editor/darteditor-macos-x64.zip
Already downloaded: /Library/Caches/Homebrew/dart-editor-30821.zip
==> Downloading https://gsdview.appspot.com/dart-archive/channels/dev/release/30821/dartium/content_shell-macos-ia32-release.zip
Already downloaded: /Library/Caches/Homebrew/dart-editor--content_shell-30821.zip
==> Caveats
DartEditor.app was installed in:
/usr/local/Cellar/dart-editor/30821

To symlink into ~/Applications, you can do:
brew linkapps

Note the mention of brew linkapps. This will put a symbolic link to Dart Editor.app in /Applications so it's easy to find.

What do I get?

You'll have the following binaries added to your Terminal path:
  • dart
  • dart2js
  • dartanalyzer
  • dartdoc
  • pub
  • content_shell (if you added the option)
Now you're ready to hack on Dart from the Editor and the command prompt.

Why do it this way?
  • You get Homebrew conventions for free, which includes putting part of the Dart SDK in the right spot for use from Terminal.
  • It's easy to uninstall everything.
  • It's easy to upgrade. brew update updates the dart-editor formula, too.
  • It's easy to install development versions. Once they are available, you can use brew install dart-editor --devel
Let me know if you have questions.

Pull requests are welcome!

Happy hacking!