- Clone the source code of godot:
git clone git@github.com:godotengine/godot.gitorgit clone https://github.com/godotengine/godot.git
- This branch uses version
4.5so checkout the version with:git checkout 4.5 - Clone this module and put it into
godot/modules/GodotJS:git clone git@github.com:godotjs/GodotJS.git godot/modules/GodotJSorgit clone https://github.com/godotjs/GodotJS.git godot/modules/GodotJS
- Recompile the godot engine
- Windows:
scons platform=windows - MacOS:
scons platform=macos arch=arm64
- Windows:
- To enable unit tests you need to add
tests=truetosconsarguments - To debug C++ code in CLion you might need to add
compiledb=yestosconsarguments once
┗━ godot
┗━ modules
┣━ ...
┣━ gltf
┣━ GodotJS
┃ ┣━ bridge
┃ ┣━ compat
┃ ┣━ docs
┃ ┣━ impl
┃ ┣━ internal
┃ ┣━ lws
┃ ┣━ quickjs
┃ ┣━ quickjs-ng
┃ ┣━ scripts
┃ ┣━ tests
┃ ┣━ v8
┃ ┃ ┣━ include
┃ ┃ ┣━ linux.x86_64.release
┃ ┃ ┣━ macos.arm64.release
┃ ┃ ┣━ windows_x86_64_release
┃ ┃ ┗━ ...
┃ ┣━ weaver
┃ ┗━ weaver-editor
┣━ gridmap
┣━ ...
Before submitting your PR add a Changeset entry:
- From the root, run
pnpm run changesetand follow the CLI instructions - You can add a full description of your change in Markdown format
If you want to create a pre-release to test build targets you need to draft a new release:
- Create a new tag like
v1.2.3-test-xyzand use the same name for the release title. - Next you can select a target branch - you don't have to pick
main. - Make sure to check the
Set as a pre-releasecheckbox. - Release notes are optional
