Hello. I've cloned the master branch of Godot locally and built it with the flag "platform=x11" on my Linux machine. The resulting executable is 281M in size while the one i've downloaded from the site is only 62M.
Why such a difference? Thanks.
Been a while since I've compiled from source, but IIRC by default it might build with all the export templates included. That should explain the difference.
I could be wrong, but another thing that could be contributing to the larger file size is when compiling from source by default all of the debug symbols and stuff are included, while the binaries on the site have these excluded.
Right, that too.
I compiled with the debug_release flag so there shouldn't be all the debug symbols included. Also the templates are not included in the binary. When i go to Project-Export and press on a preset it says "no export template found at the expected path".
Maybe this page about optimizing for build size on the documentation will help?