Clone the repo using git clone https://github.com/decentraland/godot-explorer
C:/gexplorer
due https://developercommunity.visualstudio.com/t/clexe-compiler-driver-cannot-handle-long-file-path/975889Install rust
Download and install third party libraries
sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
sudo apt install -y --no-install-recommends clang curl pkg-config libavcodec-dev libavformat-dev libavutil-dev libavfilter-dev libavdevice-dev
sudo apt update -y; sudo apt install -y libssl-dev libx11-dev libgl1-mesa-dev libxext-dev
brew install ffmpeg@6 pkg-config
https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full-shared.7z
LIBCLANG_PATH
= path to LLVM\x64\bin
(this is packaged with visual studio, or can be downloaded separately)FFMPEG_DIR
= root folder where ffmpeg has been unzipped
ffmpeg\bin
to your PATH
.github/workflows/ci.yml
file can be useful to guide youRun cargo run -- install
in the repo root folder.
cargo run -- run
to build the Rust library and execute the client.
-r
it builds the library in release mode. Note: the Godot executable is an editor, so it's a release_debug
build, see the Target section here for more infromation.-e
it also builds the library, but the project edition is executed instead of the client.Execute the following commands for building Godot:
# Run Docker
docker run -v {godot-explorer-repo-path}:/app/ -it kuruk/dcl-godot-android-builder:latest
# Compile for Android
cd lib
./android-build.sh # arm64
./android-build.sh x86_64 # android x86_64 if needed
cd ../../ # return
# Compile for Linux
cargo run -- install
cargo run -- run --only-build
cd ../../ # return
# Generate .APK
## Download Android Template, only one time needed
cd godot/
git clone https://github.com/decentraland/godot-explorer-android-template.git android # Only one time
cd ../
## Build Android and Export APK for arm64
./build-android-apk.sh
More details on CONTRIBUTING.md
This repo is set up to be opened with Visual Studio Code. In the section Run and Debug
in the Activity bar, you can find the configuration for your platform.
cargo run -- coverage --dev
. It'll create a coverage
folder with the index.html with the all information. In order to run these commands, you need to have llvm-tools and grcov installed. You can install them with rustup component add llvm-tools-preview
and cargo install grcov
.See lib/builds.md
Powered by the Decentraland DAO