Custom build scripts and patches for RustDesk — an open-source remote desktop application written in Rust. Supports both Linux (Arch/makepkg) and Android (aarch64/armv7/x86_64) targets, with hardware codec (H.264/H.265) support via vcpkg + FFmpeg.
| File | Purpose |
|---|---|
PKGBUILD |
Arch Linux package build definition |
build.sh |
Standalone Linux build script (no makepkg required) |
build-android.sh |
Android APK build script |
server/docker-compose.yml |
Self-hosted server stack (hbbs + hbbr behind Tailscale) |
0000-disable-update-check@rustdesk.patch |
Disables the built-in update nag |
0002-screen_retriever@rustdesk.patch |
Screen retriever compatibility fix |
0003-mkvparser.cc-cstdint.patch |
C++17 <cstdint> include fix for mkvparser |
RustDesk 1.4.6 — Flutter 3.24.5 · flutter_rust_bridge 1.80.1 · vcpkg 120deac3
pacman -S --needed git cmake gcc curl wget yasm nasm zip make pkg-config clang \
rust python python-yaml python-toml ninja patchelf \
ffnvcodec-headers amf-headers
makepkg -siDownloads all sources automatically:
bash build.shThe packaged bundle lands in pkg/usr/lib/rustdesk/.
Requires Android SDK, NDK r27c, JDK 17, Flutter 3.24.5, and Rust (via rustup).
Run the Linux build.sh first (or at least its prepare step) so the source tree is in place.
# default aarch64
bash build-android.sh
# specific ABI
bash build-android.sh armv7
# all ABIs
bash build-android.sh allAPKs are written to the script directory.
The server/ directory contains a Docker Compose stack that runs the RustDesk relay and rendezvous server behind Tailscale, so no public ports need to be exposed.
cd server
TS_AUTHKEY=<your-tailscale-auth-key> docker compose up -dSet the RustDesk client's ID/relay server to the Tailscale hostname (default: rustdesk).
The build includes --hwcodec and links vcpkg-built FFmpeg. Install a matching VA-API driver for your hardware:
| Hardware | Package |
|---|---|
| Intel (Broadwell+) | intel-media-driver |
| Intel (Haswell and older) | libva-intel-driver |
| AMD / NVIDIA | libva-mesa-driver |
Use vainfo (from libva-utils) to verify codec support before expecting hardware acceleration.
RustDesk upstream is AGPL-3.0. The build scripts and patches in this repository are provided as-is with no additional restrictions.