Motty
Development

Build from source

Requirements, the headless build and packaging.

Requirements

  • Go 1.26 or newer.
  • The Viva framework checked out beside this repository as ../viva. Viva is a separate project with its own licence and is not vendored.
  • macOS with Metal and the Xcode command-line tools, Windows 10/11, or Linux with X11.

Run

git clone https://github.com/t8y2/motty
git clone https://github.com/vivaui/viva
cd motty
go run ./cmd/motty

Test

gofmt -l .
go vet ./...
go test ./...
go test -race ./...

Headless build and end-to-end scripts

go build -tags vivahead -o /tmp/motty-head ./cmd/motty
python3 tools/headless_drive.py /tmp/motty-home tools/e2e/host_menu_move_e2e.txt

tools/README.md describes the headless driver, the loopback SSH fixture and the end-to-end scripts.

Package

Packaging goes through Viva:

cd ../viva
go run ./cmd/viva package -C ../motty --format app,dmg
go run ./cmd/viva package -C ../motty --target linux --arch amd64 --format tar.gz,deb

On this page