clemos / haxe-sublime-bundle

Sublime Text bundle for Haxe programming language
Apache License 2.0
237 stars 86 forks source link

How do you do a release build? #105

Closed johnfn closed 10 years ago

johnfn commented 11 years ago

This may be a dumb question, but I can't find any way to do a release build from Sublime Text. If there is such a way, could you document it? And if not, would it be possible to add one? :-)

It seems to me like -debug is always being passed in as a flag when I'm doing an openfl project.

Thanks for the great work!

clemos commented 11 years ago

It's indeed not possible currently, as all NME/OpenFL builds are compiled with -debug. I think it's been left like this on purpose, probably because compiling release builds is usually part of a process that doesn't really involve a text editor such as ST (building, packaging, deploying, etc), so I guess most people use a terminal or some scripts to do release builds. So I'm not so much in favor of adding yet another possible build option (per NME/OpenFL target...) as it would flood the NME target build menu with even more items than there are currently (which is already a lot) A workaround might be to split this huge menu in two: select targets, and then select build type (test, debug build, or release) ?

johnfn commented 11 years ago

A little menu that could select between debug and release would be great. Heck, even a shortcut that would toggle them in the background and say something in the status bar would be good enough!

jonathanhirz commented 10 years ago

I think there should be a way to do a release build from Sublime Text, even if it clutters the build menu. With fuzzy searching it is very easy to type the platform you want, then you just have 2-3 options if you want test/debug/release. Switching to the command line is an extra step that breaks workflow. Thanks for considering!

Gama11 commented 10 years ago

This is a major problem with Sublime's Haxe/OpenFL-workflow from what I can tell, shouldn't still be a issue after 8 months.

clemos commented 10 years ago

I'll see what I can do. But honestly I'd very much appreciate a PR, since I don't work on OpenFL much... Maybe a command accessible from the palette would be nice enough, since release builds are less frequent; I'm not too much in favor of adding yet another step when selecting build.

jonathanhirz commented 10 years ago

Well I managed to add Flash - Release to the build list in about 5 minutes (longest time spent was finding where in the code that menu list is...). I'll work on the rest and send a pull request so you can see if that works for you.

clemos commented 10 years ago

Closed due to PR #137 :D

jefvel commented 9 years ago

Would be nice to have a release build menu option for HTML5 too. That doesn't seem to exist at the moment.