Topic was automatically imported from the old Question2Answer platform.
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?
Thanks
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 --pathcommand 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:
#!/bin/bash
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
fi
echo "run export template for macOS release build"
./osx_template.app/Contents/MacOS/godot_osx_release.64
else
echo "other OS than macOS"
fi