Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ae83637a44
Fetching contributors…

Cannot retrieve contributors at this time

executable file 34 lines (25 sloc) 0.722 kb
#!/usr/bin/env bash
# bin/compile <build-dir> <cache-dir>
# fail fast
set -e
set -x
unset GIT_DIR
mkdir -p "$1" "$2"
BUILD_DIR=$(cd "$1/" && pwd)
CACHE_DIR=$(cd "$2/" && pwd)
function message {
echo "$1"
sync
}
# official VM is .zip only, which unfortuantely we can't extract on Heroku (doh)
# DART_SDK_SOURCE="https://gsdview.appspot.com/dart-editor-archive-continuous/latest/dart-linux.zip"
DART_SDK_URL="http://dl.dropbox.com/u/37984425/dart_x64_bin.tgz"
if [ ! -e "$CACHE_DIR/dart" ]; then
message "-----> Installing latest Dart VM"
cd $CACHE_DIR
curl -L $DART_SDK_URL -s -o - | tar xzf -
else
message "-----> Using cached Dart VM"
fi
mkdir -p $BUILD_DIR/bin
cp $CACHE_DIR/dart $BUILD_DIR/bin/dart
Jump to Line
Something went wrong with that request. Please try again.