Skip to content

Building

kurogedelic edited this page Nov 19, 2026 · 1 revision

Building

Harbour Shell is written in Rust and uses SDL2 (with SDL2_image). The full details are in docs/HARBOUR-SHELL.md.

Run on a Mac (mock mode)

With Rust and the SDL2 libraries installed:

HARBOUR_MOCK=1 cargo run --bin harbour-shell

This opens a window at 3x size with fake hardware.

Run the tests:

cargo test --lib

Build for the device (arm64)

The arm64 build runs in Docker (Debian 13, rust:trixie). Docker must be running.

./tools_build_arm64.sh

The binaries go to dist/arm64/.

Bundle and package

User-level bundle (installed with install_user.sh, no sudo):

./tools_make_bundle.sh

This makes dist/bundle/. Copy it to the device and run sh install_user.sh <bundle folder> there.

Debian package:

packaging/build_deb.sh

This makes dist/arm64/harbour-shell_<version>_arm64.deb. Run ./tools_build_arm64.sh and ./tools_make_bundle.sh first. The package installs the service and harbourctl, but enables nothing.

Clone this wiki locally