Skip to main content

How to build?

To build Local Desktop from source code, you can follow these steps:

  1. Clone the source code repository:

    git clone https://github.com/localdesktop/localdesktop.github.io.git
  2. Make sure you already have Rust and Cargo installed. If not, please check the official Rust website for installation instructions. Then, you can install the xbuild tool:

    cargo install xbuild

    At the moment, you need to install a locally patched version of xbuild. Follow this instruction instead:

    cd patches/xbuild
    cargo install --path xbuild
  3. Build the project:

    x build --release --platform android --arch arm64 --format apk

Then you will find the APK file in target/x/release/android/localdesktop.apk.

FAQ

Can I build on Termux?

Yes.

For the simplest path, install Rust in Termux and run:

pkg i rust
cargo run

This uses the built-in Rust APK builder and writes localdesktop.apk in the project root.

If you want to use the patched xbuild pipeline on Termux, run:

bash scripts/build-termux.sh

This writes the APK to target/x/release/android/localdesktop.apk.

Can I build on Termux & proot-distro?

Yes.