Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
Obtenir la source
Télécharger le code source de Godot
Avant de s'intéresser au système de construction(build) SCons et de compiler Godot, vous devez télécharger le code source de Godot.
Le code source est disponible sur GitHub et bien que vous puissiez le télécharger manuellement via le site web, en général vous voulez le faire via le système de contrôle de version git.
If you are compiling in order to make contributions or pull requests, you should follow the instructions from the Pull Request workflow.
Si vous ne savez pas encore grand chose sur git, il existe un grand nombre de tutoriels disponibles sur différents sites web.
En général, vous devez installer git et/ou l'un des différentes GUI clients.
Ensuite, pour obtenir la dernière version du développement du code source de Godot (la branche instable master), vous pouvez utiliser git clone.
Si vous utilisez le client en ligne de commande git, vous pouvez le faire en saisissant ce qui suit dans un terminal :
git clone https://github.com/godotengine/godot.git
# You can add the --depth 1 argument to omit the commit history (shallow clone).
# A shallow clone is faster, but not all Git operations (like blame) will work.
Pour toute version stable, rendez-vous sur la page des versions et cliquez sur le lien de la version que vous souhaitez. Vous pouvez alors télécharger et extraire la source à partir du lien de téléchargement sur la page.
With git, you can also clone a stable release by specifying its branch or tag
after the --branch (or just -b) argument:
# Clone the continuously maintained stable branch (`4.4` as of writing).
git clone https://github.com/godotengine/godot.git -b 4.4
# Clone the `4.4-stable` tag. This is a fixed revision that will never change.
git clone https://github.com/godotengine/godot.git -b 4.4-stable
# After cloning, optionally go to a specific commit.
# This can be used to access the source code at a specific point in time,
# e.g. for development snapshots, betas and release candidates.
cd godot
git checkout f4af8201bac157b9d47e336203d3e8a8ef729de2
The maintenance branches are used to release further patches on each minor version.
You can get the source code for each release and pre-release in .tar.xz format from
godotengine/godot-builds on GitHub.
This lacks version control information but has a slightly smaller download size.
Après avoir téléchargé le code source de Godot, vous pouvez continuer à compiler Godot.