move the engine download code to dart (#3180)

* move the engine download code to dart

* fix populating the bin/cache/pkg dir
This commit is contained in:
Devon Carew
2016-04-07 13:31:44 -07:00
parent b9e121a5fa
commit a729b02f1a
6 changed files with 115 additions and 88 deletions

View File

@@ -29,7 +29,6 @@ DART="$DART_SDK_PATH/bin/dart"
REVISION=`(cd "$FLUTTER_ROOT"; git rev-parse HEAD)`
if [ ! -f "$SNAPSHOT_PATH" ] || [ ! -f "$STAMP_PATH" ] || [ `cat "$STAMP_PATH"` != "$REVISION" ] || [ "$FLUTTER_TOOLS_DIR/pubspec.yaml" -nt "$FLUTTER_TOOLS_DIR/pubspec.lock" ]; then
"$FLUTTER_ROOT/bin/cache/update_dart_sdk.sh"
"$FLUTTER_ROOT/bin/cache/update_engine.sh"
echo Building flutter tool...
FLUTTER_DIR="$FLUTTER_ROOT/packages/flutter"