|
|
8 жил өмнө | |
|---|---|---|
| .. | ||
| scripts | 8 жил өмнө | |
| Dockerfile | 8 жил өмнө | |
| README.md | 8 жил өмнө | |
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.
cdcd /c/Users/YOUR_USERNAMEcd /Users/YOUR_USERNAMEgit clone https://github.com/godotengine/godot.gitcd godot/tools/dockerdocker 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 godotdocker run -it --name=godot-dev -v /c/Users/YOUR_USERNAME/godot:/godot-dev/godot godotdocker 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 ~/.bashrccd godotscons 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 stopdocker-machine startdocker start godot-dev && docker attach godot-devssh to VM(can be useful sometimes):
docker-machine sshCheck docker and boot2docker projects for more details.