Fix builds of FLX bundles using AOT compilation (#6684)

This commit is contained in:
Jason Simmons
2016-11-03 10:48:57 -07:00
committed by GitHub
parent d86900d22f
commit 984b62390c
2 changed files with 6 additions and 5 deletions

View File

@@ -42,12 +42,12 @@ Future<Null> main(List<String> args) async {
}
Cache.flutterRoot = Platform.environment['FLUTTER_ROOT'];
String outputPath = argResults[_kOptionOutput];
final int buildResult = await build(
final int buildResult = await assemble(
outputPath: outputPath,
snapshotPath: argResults[_kOptionSnapshot],
snapshotFile: new File(argResults[_kOptionSnapshot]),
workingDirPath: argResults[_kOptionWorking],
packagesPath: argResults[_kOptionPackages],
precompiledSnapshot: true,
manifestPath: defaultManifestPath,
includeRobotoFonts: true,
);
if (buildResult != 0) {

View File

@@ -90,6 +90,7 @@ Future<int> build({
depfilePath ??= defaultDepfilePath;
workingDirPath ??= getAssetBuildDirectory();
packagesPath ??= path.absolute(PackageMap.globalPackagesPath);
File snapshotFile;
if (!precompiledSnapshot) {
ensureDirectoryExists(snapshotPath);
@@ -107,9 +108,9 @@ Future<int> build({
printError('Failed to run the Flutter compiler. Exit code: $result');
return result;
}
}
File snapshotFile = new File(snapshotPath);
snapshotFile = new File(snapshotPath);
}
return assemble(
manifestPath: manifestPath,