Skip to content

Instantly share code, notes, and snippets.

@nndda
Last active October 2, 2023 12:22
Show Gist options
  • Save nndda/8b5be1f970386674088724603fcb88cd to your computer and use it in GitHub Desktop.
Save nndda/8b5be1f970386674088724603fcb88cd to your computer and use it in GitHub Desktop.
Compiling Export Template for Godot in GitHub Codespace

Compiling Export Template for Godot in GitHub Codespace

Quick & simplified steps on how to do that (my laptop is weak)


Create new codespace

Create new... > New codespace, or https://github.com/codespaces/new

Download Godot source code

# match the branch to the project's version
git clone https://github.com/godotengine/godot.git -b 4.1.1-stable

# go to the source code dir
cd godot

Windows

Install SCons

python -m pip install scons

Install MinGW-w64

sudo apt-get update
sudo apt-get -y install mingw-w64

Switch to POSIX threading

64-bit:

sudo update-alternatives --config x86_64-w64-mingw32-gcc
<choose x86_64-w64-mingw32-gcc-posix from the list>
sudo update-alternatives --config x86_64-w64-mingw32-g++
<choose x86_64-w64-mingw32-g++-posix from the list>

32-bit:

sudo update-alternatives --config i686-w64-mingw32-gcc
<choose i686-w64-mingw32-gcc-posix from the list>
sudo update-alternatives --config i686-w64-mingw32-g++
<choose i686-w64-mingw32-g++-posix from the list>

Creating Windows export templates

scons platform=windows target=template_debug arch=x86_32
scons platform=windows target=template_release arch=x86_32
scons platform=windows target=template_debug arch=x86_64
scons platform=windows target=template_release arch=x86_64

Download the resulting files in bin/ or commit and push the changes to the repository


Useful tools:

Links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment