Commit 0b2a946b authored by James Robinson's avatar James Robinson

Prepend mojo shebang to skyx files

skyx files are zips, so they can have anything at the start. Having
a shebang line at the start makes it easier to run skyx files in a mojo
environment.
parent 3e9ceec0
......@@ -174,7 +174,8 @@ class BuildCommandHandler extends CommandHandler {
}
File outputFile = new File(results['output-file']);
await outputFile.writeAsBytes(new ZipEncoder().encode(archive));
await outputFile.writeAsString('#!mojo mojo:sky_viewer\n')
await outputFile.writeAsBytes(new ZipEncoder().encode(archive), mode: FileMode.APPEND);
return 0;
}
}
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