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
27118f39
Commit
27118f39
authored
Nov 02, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a default maniest path for build
parent
fe5f98e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
build.dart
packages/flutter_tools/lib/src/commands/build.dart
+4
-3
No files found.
packages/flutter_tools/lib/src/commands/build.dart
View file @
27118f39
...
...
@@ -85,7 +85,7 @@ Iterable<_MaterialAsset> _parseMaterialAssets(Map manifestDescriptor) sync* {
}
dynamic
_loadManifest
(
String
manifestPath
)
{
if
(
manifestPath
==
null
)
if
(
manifestPath
==
null
||
!
FileSystemEntity
.
isFileSync
(
manifestPath
)
)
return
null
;
String
manifestDescriptor
=
new
File
(
manifestPath
).
readAsStringSync
();
return
loadYaml
(
manifestDescriptor
);
...
...
@@ -107,6 +107,7 @@ ArchiveFile _createSnapshotFile(String snapshotPath) {
const
String
_kDefaultAssetBase
=
'packages/material_design_icons/icons'
;
const
String
_kDefaultMainPath
=
'lib/main.dart'
;
const
String
_kDefaultManifestPath
=
'flutter.yaml'
;
const
String
_kDefaultOutputPath
=
'app.flx'
;
const
String
_kDefaultSnapshotPath
=
'snapshot_blob.bin'
;
const
String
_kDefaultPrivateKeyPath
=
'privatekey.der'
;
...
...
@@ -120,7 +121,7 @@ class BuildCommand extends FlutterCommand {
argParser
.
addOption
(
'asset-base'
,
defaultsTo:
_kDefaultAssetBase
);
argParser
.
addOption
(
'compiler'
);
argParser
.
addOption
(
'main'
,
defaultsTo:
_kDefaultMainPath
);
argParser
.
addOption
(
'manifest'
);
argParser
.
addOption
(
'manifest'
,
defaultsTo:
_kDefaultManifestPath
);
argParser
.
addOption
(
'private-key'
,
defaultsTo:
_kDefaultPrivateKeyPath
);
argParser
.
addOption
(
'output-file'
,
abbr:
'o'
,
defaultsTo:
_kDefaultOutputPath
);
argParser
.
addOption
(
'snapshot'
,
defaultsTo:
_kDefaultSnapshotPath
);
...
...
@@ -149,7 +150,7 @@ class BuildCommand extends FlutterCommand {
Future
<
int
>
build
({
String
assetBase:
_kDefaultAssetBase
,
String
mainPath:
_kDefaultMainPath
,
String
manifestPath
,
String
manifestPath
:
_kDefaultManifestPath
,
String
outputPath:
_kDefaultOutputPath
,
String
snapshotPath:
_kDefaultSnapshotPath
,
String
privateKeyPath:
_kDefaultPrivateKeyPath
,
...
...
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