Получение исходного кода
Загрузка исходного кода Godot
Перед тем, как попасть в систему сборки SCons и скомпилировать Godot, вам нужно фактически загрузить исходный код Godot.
The source code is available on GitHub
and while you can manually download it via the website, in general you want to
do it via the git version control system.
If you are compiling in order to make contributions or pull requests, you should follow the instructions from the Pull Request workflow.
Если вы еще не очень разбираетесь в git, на разных веб-сайтах доступно множество руководств <https://git-scm.com/book> `__.
В общем, вам нужно установить git и/или один из различных клиентов с пользовательским интерфейсом.
Далее, чтобы получить последнюю версию исходного кода Godot (из нестабильной master ветки), вы можете использовать git clone.
Если вы используете команду git из терминала командной строки, это может выполнено вводом:
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.
Для любого стабильного выпуска, посетите страница выпуска и щёлкните по ссылке того выпуска который вы хотите. Тогда вы сможете загрузить и распаковать исходный код из загрузочной ссылки на странице.
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.
После загрузки исходного кода Godot, вы сможете продолжить компилировать Godot.