mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Merge pull request #57 from jamesr/fix_build
Fix sky_tools build command to look for package-root in global args
This commit is contained in:
commit
2fe4484d9c
@ -150,7 +150,7 @@ class BuildCommand extends Command {
|
|||||||
await _compileSnapshot(
|
await _compileSnapshot(
|
||||||
compilerPath: argResults['compiler'],
|
compilerPath: argResults['compiler'],
|
||||||
mainPath: argResults['main'],
|
mainPath: argResults['main'],
|
||||||
packageRoot: argResults['package-root'],
|
packageRoot: globalResults['package-root'],
|
||||||
snapshotPath: snapshotPath);
|
snapshotPath: snapshotPath);
|
||||||
archive.addFile(await _createSnapshotFile(snapshotPath));
|
archive.addFile(await _createSnapshotFile(snapshotPath));
|
||||||
|
|
||||||
|
@ -29,7 +29,6 @@ class RunMojoCommand extends Command {
|
|||||||
|
|
||||||
argParser.addOption('app', defaultsTo: 'app.flx');
|
argParser.addOption('app', defaultsTo: 'app.flx');
|
||||||
argParser.addOption('mojo-path', help: 'Path to directory containing mojo_shell and services');
|
argParser.addOption('mojo-path', help: 'Path to directory containing mojo_shell and services');
|
||||||
argParser.addOption('package-root', defaultsTo: 'packages');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<String> _makePathAbsolute(String relativePath) async {
|
Future<String> _makePathAbsolute(String relativePath) async {
|
||||||
|
Loading…
Reference in New Issue
Block a user