Rémi Verschelde b40f3f9740 Style: Sync other changes from new fix_style.sh and clang_format.sh | 4 年之前 | |
---|---|---|
.. | ||
scripts | 4 年之前 | |
Dockerfile | 7 年之前 | |
README.md | 7 年之前 |
The main reason to write this, is to provide a simple way in all platforms to integrate external godot modules and build a custom version of godot.
cd
cd /c/Users/YOUR_USERNAME
cd /Users/YOUR_USERNAME
git clone https://github.com/godotengine/godot.git
cd godot/tools/docker
docker build -t godot .
(In Linux run Docker commands with sudo
or add your user to docker group before run the Docker commands). The godot docker image will be build after a while.docker run -it --name=godot-dev -v /home/YOUR_USERNAME/godot:/godot-dev/godot godot
docker run -it --name=godot-dev -v /c/Users/YOUR_USERNAME/godot:/godot-dev/godot godot
docker run -it --name=godot-dev -v /Users/YOUR_USERNAME/godot:/godot-dev/godot godot
You are in the godot-dev container and /godot-dev directory now../install-android-tools
to download and install all android development tools.source ~/.bashrc
cd godot
scons p=android target=release
to test everything is ok. You can set platform to x11, windows, android, haiku and server.After use and exit, you can use this environment again by open terminal and type commands: docker start godot-dev && docker attach godot-dev
.
Speed up compilation:
docker-machine stop
docker-machine start
docker start godot-dev && docker attach godot-dev
ssh to VM(can be useful sometimes):
docker-machine ssh
Check docker and boot2docker projects for more details.