Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
7425f606
Commit
7425f606
authored
Feb 06, 2016
by
Devon Carew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a dev mode to the flutter script
parent
68f33d30
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
flutter
bin/flutter
+5
-0
flutter.bat
bin/flutter.bat
+5
-0
No files found.
bin/flutter
View file @
7425f606
...
...
@@ -15,6 +15,11 @@ SCRIPT_PATH="$FLUTTER_TOOLS_DIR/bin/flutter_tools.dart"
# TODO(abarth): We shouldn't require dart to be on the user's path.
DART
=
dart
if
[
-n
$FLUTTER_DEV
]
;
then
$DART
--checked
--package-root
=
"
$FLUTTER_TOOLS_DIR
/packages"
"
$SCRIPT_PATH
"
"
$@
"
exit
0
fi
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
echo
Updating flutter tool...
...
...
bin/flutter.bat
View file @
7425f606
...
...
@@ -13,6 +13,11 @@ SET script_path=%flutter_tools_dir%\bin\flutter_tools.dart
REM TODO: Don't require dart to be on the user's path
SET dart=dart
IF "%FLUTTER_DEV%" == "" GOTO no_flutter_dev
CALL %dart% --checked --package-root="%flutter_tools_dir%\packages" "%script_path%" %*
EXIT /B %ERRORLEVEL%
:no_flutter_dev
REM Set current working directory to the flutter directory
PUSHD %flutter_root%
REM IF doesn't have an "or". Instead, just use GOTO
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment