Add initial support for '--output-file' option on 'display' command

This commit is contained in:
Joshua Granick
2019-03-18 12:01:28 -07:00
parent 6c01e873af
commit b795534773
10 changed files with 101 additions and 10 deletions

View File

@@ -55,7 +55,14 @@ class FlashPlatform extends PlatformTarget
public override function display():Void
{
Sys.println(getDisplayHXML());
if (project.targetFlags.exists ("output-file"))
{
Sys.println (Path.combine(targetDirectory, project.app.file + ".swf"));
}
else
{
Sys.println(getDisplayHXML());
}
}
private function generateContext():Dynamic