• Building
  • How can I export a release build of my game?

I only recently worked out how to properly export my game to single executables, and so far the workflow godot has for doing this seems very well thought out and easy to use. However, all of my builds continue to print errors and warnings just as they normally would, implying that they're actually debug builds even when I try doing it with --export in the terminal (as opposed to --export-debug), which isn't what I'm aiming for.

I got this system working by downloading and installing the 3.2.4 beta 4 export templates straight off the index, and I can see that it actually contains files with names ending in "_release" so I don't see any reason for it not being capable of doing this. Can someone give me advice on what I should try or find out please?

Thanks in advance!

I'm not sure, I could be recalling wrong but aren't beta builds all debug only?

@Megalomaniak said: I'm not sure, I could be recalling wrong but aren't beta builds all debug only?

I think they are, but I also could be misremembering. I think the difference for beta builds is whether it has tools enabled or not.

@ator-dev when you are exporting in the Godot editor, do you have the little slider-button/checkbox disabled for debug builds? I think its either in the export settings for the platform or its on the file dialog where you choose the export location. I'm not sure if it would change anything, but I think its set to export with debug by default.

@TwistedTwigleg said:

@Megalomaniak said: I'm not sure, I could be recalling wrong but aren't beta builds all debug only?

I think they are, but I also could be misremembering. I think the difference for beta builds is whether it has tools enabled or not.

@ator-dev when you are exporting in the Godot editor, do you have the little slider-button/checkbox disabled for debug builds? I think its either in the export settings for the platform or its on the file dialog where you choose the export location. I'm not sure if it would change anything, but I think its set to export with debug by default.

I was sure there would be something like that, but if there is an option it's not obvious at all and I've been searching for ages at this point. However, when you choose "export all" you get an option for release or debug, and the resulting "release" file still prints warnings and so on. Do you know if I'm correct that debug things like warnings are disabled when release-building, or might I just be misremembering?

There should still be some warnings and errors printed by release builds, it just won't have the full set of debug symbols in it and it will include compiler optimizations in the bundled build so it'll run faster. Note that when you export a project nothing gets built. The export templates already include pre-built binaries.

13 days later

@Megalomaniak said: There should still be some warnings and errors printed by release builds, it just won't have the full set of debug symbols in it and it will include compiler optimizations in the bundled build so it'll run faster. Note that when you export a project nothing gets built. The export templates already include pre-built binaries.

Thanks, that makes perfect sense now! Sorry this response is late, the email notification went in my junk mail so I didn't see it until I checked that folder today.