How to play the project in editor in release mode?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By pinkink

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?

:bust_in_silhouette: Reply From: Calinou

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.

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 ]; then
    echo "copy from editor data path to project directory"
    cp ~/Library/Application\ Support/Godot/templates/3.5.stable/ .
    echo "unzip"
    echo "remove"
  echo "run export template for macOS release build"
  echo "other OS than macOS"

pinkink | 2022-09-24 02:01