Commit 78c19d22 authored by Adam Barth's avatar Adam Barth

Teach run_mojo about Mozart

Instead of running the FLX directly, we need to run mojo:launcher and have it
run the FLX.
parent c0ef05c3
......@@ -103,7 +103,7 @@ class RunMojoCommand extends FlutterCommand {
args.add('--android');
final String appName = path.basename(appPath);
final String appDir = path.dirname(appPath);
args.add('http://app/$appName');
args.add('mojo:launcher http://app/$appName');
args.add('--map-origin=http://app/=$appDir');
final String flutterName = path.basename(flutterPath);
......@@ -111,7 +111,7 @@ class RunMojoCommand extends FlutterCommand {
args.add('--map-origin=http://flutter/=$flutterDir');
args.add('--url-mappings=mojo:flutter=http://flutter/$flutterName');
} else {
args.add('file://$appPath');
args.add('mojo:launcher file://$appPath');
args.add('--url-mappings=mojo:flutter=file://$flutterPath');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment