Commit 91fa3701 authored by Adam Barth's avatar Adam Barth

Merge pull request #1974 from abarth/relative_pub

Teach flutter to run from a relative path
parents 49c0ec34 73449f80
......@@ -20,10 +20,9 @@ if [ ! -f "$SNAPSHOT_PATH" ] || [ ! -f "$STAMP_PATH" ] || [ `cat "$STAMP_PATH"`
echo Building flutter tool...
FLUTTER_DIR="$FLUTTER_ROOT/packages/flutter"
PUB="$DART_SDK_PATH/bin/pub"
(cd "$FLUTTER_TOOLS_DIR"; "$PUB" get > /dev/null)
(cd "$FLUTTER_DIR"; "$PUB" get > /dev/null) # Allows us to check if sky_engine's REVISION is correct
(cd "$FLUTTER_TOOLS_DIR"; "../../bin/cache/dart-sdk/bin/pub" get > /dev/null)
(cd "$FLUTTER_DIR"; "../../bin/cache/dart-sdk/bin/pub" get > /dev/null) # Allows us to check if sky_engine's REVISION is correct
"$DART" --snapshot="$SNAPSHOT_PATH" --package-root="$FLUTTER_TOOLS_DIR/packages" "$SCRIPT_PATH"
echo $REVISION > "$STAMP_PATH"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment