Use --packages rather than --package-root

The .packages file is replacing the packages directory of symlinks.
This commit is contained in:
Adam Barth
2016-03-28 13:07:42 -07:00
parent 6ffee20bd6
commit 2e062dfab4
15 changed files with 99 additions and 61 deletions

View File

@@ -38,7 +38,7 @@ CD "%flutter_dir"
REM Allows us to check if sky_engine's REVISION is correct
CALL pub.bat get
CD "%flutter_root%"
CALL %dart% --snapshot="%snapshot_path%" --package-root="%flutter_tools_dir%\packages" "%script_path%"
CALL %dart% --snapshot="%snapshot_path%" --packages="%flutter_tools_dir%\.packages" "%script_path%"
<nul SET /p=%revision%> "%stamp_path%"
:after_snapshot
@@ -48,6 +48,6 @@ POPD
CALL %dart% "%snapshot_path%" %*
IF /I "%ERRORLEVEL%" EQU "253" (
CALL %dart% --snapshot="%snapshot_path%" --package-root="%flutter_tools_dir%\packages" "%script_path%"
CALL %dart% --snapshot="%snapshot_path%" --packages="%flutter_tools_dir%\.packages" "%script_path%"
CALL %dart% "%snapshot_path%" %*
)