I'm trying to automate the exporting, and I haven't been able to do so. I have tried to compile Godot from source, but I get some errors when running "scons p=x11 target=debug", even though I have installed all the necessary requirements. I also tried to run the binary that Steam downloaded through a terminal, but it just opens the editor no matter what options I put into it. I'm running Ubuntu 16.04 and the 2.1.3 stable release. How can I do this? I would like to compile for both Linux and Windows.

Note that Godot 3.0 features a rewritten export system, which does not support command-line exporting yet.

While Godot 2.1 does have some sort of command-line exporting, it leaves a lot to be desired – it is not possible, for example, to export to 32-bit Windows and 64-bit Windows at the same time (unless performing automated editing of the export.cfg file).