Commit 73449f80 authored by Adam Barth's avatar Adam Barth

Teach flutter to run from a relative path

Previously we were trying to run pub from the wrong working directory.
parent 49c0ec34
......@@ -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