getting_source.rst 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. .. _doc_getting_source:
  2. Getting the source
  3. ==================
  4. Downloading the Godot source code
  5. ---------------------------------
  6. Before :ref:`getting into the SCons build system <doc_introduction_to_the_buildsystem>`
  7. and compiling Godot, you need to actually download the Godot source code.
  8. The source code is available on `GitHub <https://github.com/godotengine/godot>`__
  9. and while you can manually download it via the website, in general you want to
  10. do it via the ``git`` version control system.
  11. If you don't know much about ``git`` yet, there are a great number of
  12. `tutorials <https://git-scm.com/book>`__ available on various websites.
  13. In general, you need to install ``git`` and/or one of the various GUI clients.
  14. Afterwards, to get the latest development version of the Godot source code
  15. (the unstable ``master`` branch), you can use ``git clone``.
  16. If you are using the ``git`` command line client, this is done by entering
  17. the following in a terminal:
  18. ::
  19. git clone https://github.com/godotengine/godot.git
  20. For any stable release, visit the `release page <https://github.com/godotengine/godot/releases>`__
  21. and click on the link for the release you want.
  22. You can then download and extract the source from the download link on the page.
  23. There are also generally branches besides ``master`` for each major version.
  24. After downloading the Godot source code,
  25. you can :ref:`continue to compiling Godot <doc_introduction_to_the_buildsystem>`.