0 votes

Hi everybody,
when I'm in the Godot editor and play my project, it always runs as debug build.
How can I make the editor to play the project in release mode?

Godot version v3.5.stable.official [991bb6ac7]
in Engine by (15 points)

1 Answer

+1 vote
Best answer

Godot currently doesn't support this as a built-in feature, but you can copy a release export template from your Godot user data folder's templates/ folder, copy it to the project folder root then double-click the export template in a file manager.

If you don't want to copy the export template to your project folder, you can run it in its original location with the --path command line argument that points to the project root folder.

by (12,719 points)
selected by

Great answer, thank you, it works.

I've made a bash script, which does a macOS release build:


OS=`uname -s`
if [ "$OS" = "Darwin" ]; then
  echo "macOS"

  if [ ! -d osx_template.app ]; then
    echo "copy osx.zip from editor data path to project directory"
    cp ~/Library/Application\ Support/Godot/templates/3.5.stable/osx.zip .
    echo "unzip osx.zip"
    unzip osx.zip
    echo "remove osx.zip"
    rm osx.zip
  echo "run export template for macOS release build"
  echo "other OS than macOS"
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.