Commit 1ddc71aa authored by Adam Barth's avatar Adam Barth

Merge pull request #379 from TheBosZ/master

Updates for Windows development
parents afaedbf2 d36af446
...@@ -12,6 +12,8 @@ SET script_path=%flutter_tools_dir%\bin\flutter_tools.dart ...@@ -12,6 +12,8 @@ SET script_path=%flutter_tools_dir%\bin\flutter_tools.dart
REM TODO: Don't require dart to be on the user's path REM TODO: Don't require dart to be on the user's path
SET dart=dart SET dart=dart
REM Set current working directory to the flutter directory
PUSHD %flutter_root%
REM IF doesn't have an "or". Instead, just use GOTO REM IF doesn't have an "or". Instead, just use GOTO
FOR /f %%r IN ('git rev-parse HEAD') DO SET revision=%%r FOR /f %%r IN ('git rev-parse HEAD') DO SET revision=%%r
IF NOT EXIST %snapshot_path% GOTO do_snapshot IF NOT EXIST %snapshot_path% GOTO do_snapshot
...@@ -34,10 +36,11 @@ CALL pub.bat get ...@@ -34,10 +36,11 @@ CALL pub.bat get
CD "%flutter_root%" CD "%flutter_root%"
CALL %dart% --snapshot="%snapshot_path%" --package-root="%flutter_tools_dir%\packages" "%script_path%" CALL %dart% --snapshot="%snapshot_path%" --package-root="%flutter_tools_dir%\packages" "%script_path%"
<nul SET /p=%revision%> "%stamp_path%" <nul SET /p=%revision%> "%stamp_path%"
goto :eof
:after_snapshot :after_snapshot
REM Go back to last working directory
POPD
CALL %dart% "%snapshot_path%" %* CALL %dart% "%snapshot_path%" %*
IF /I "%ERRORLEVEL%" EQU "253" ( IF /I "%ERRORLEVEL%" EQU "253" (
......
...@@ -509,7 +509,7 @@ class AndroidDevice extends Device { ...@@ -509,7 +509,7 @@ class AndroidDevice extends Device {
// 015d172c98400a03 device usb:340787200X product:nakasi model:Nexus_7 device:grouper // 015d172c98400a03 device usb:340787200X product:nakasi model:Nexus_7 device:grouper
RegExp deviceRegex1 = new RegExp( RegExp deviceRegex1 = new RegExp(
r'^(\S+)\s+device\s+\S+\s+product:(\S+)\s+model:(\S+)\s+device:(\S+)$'); r'^(\S+)\s+device\s+.*product:(\S+)\s+model:(\S+)\s+device:(\S+)$');
// 0149947A0D01500C device usb:340787200X // 0149947A0D01500C device usb:340787200X
RegExp deviceRegex2 = new RegExp(r'^(\S+)\s+device\s+\S+$'); RegExp deviceRegex2 = new RegExp(r'^(\S+)\s+device\s+\S+$');
......
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