File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ Future<Null> main(List<String> args) async {
42
42
}
43
43
Cache .flutterRoot = Platform .environment['FLUTTER_ROOT' ];
44
44
String outputPath = argResults[_kOptionOutput];
45
- final int buildResult = await build (
45
+ final int buildResult = await assemble (
46
46
outputPath: outputPath,
47
- snapshotPath : argResults[_kOptionSnapshot],
47
+ snapshotFile : new File ( argResults[_kOptionSnapshot]) ,
48
48
workingDirPath: argResults[_kOptionWorking],
49
49
packagesPath: argResults[_kOptionPackages],
50
- precompiledSnapshot : true ,
50
+ manifestPath : defaultManifestPath ,
51
51
includeRobotoFonts: true ,
52
52
);
53
53
if (buildResult != 0 ) {
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ Future<int> build({
90
90
depfilePath ?? = defaultDepfilePath;
91
91
workingDirPath ?? = getAssetBuildDirectory ();
92
92
packagesPath ?? = path.absolute (PackageMap .globalPackagesPath);
93
+ File snapshotFile;
93
94
94
95
if (! precompiledSnapshot) {
95
96
ensureDirectoryExists (snapshotPath);
@@ -107,9 +108,9 @@ Future<int> build({
107
108
printError ('Failed to run the Flutter compiler. Exit code: $result ' );
108
109
return result;
109
110
}
110
- }
111
111
112
- File snapshotFile = new File (snapshotPath);
112
+ snapshotFile = new File (snapshotPath);
113
+ }
113
114
114
115
return assemble (
115
116
manifestPath: manifestPath,
You can’t perform that action at this time.
0 commit comments