Building & testing¶
Requirements: Go ≥ 1.24, Node ≥ 18 (only for the JS syntax check), Python + MkDocs Material for the docs.
make help # list targets
make build # bin/fr0ntier for the host
make build-arm # bin/fr0ntier-arm - ARM edition (arm64, static, CGO disabled)
make build-x64 # bin/fr0ntier-x64 - x64 edition (amd64, static, CGO disabled)
make test # unit tests (root enables the NFLOG and nft integration tests)
make lint # go vet for both editions, JS syntax, shellcheck
make dev # dry-run daemon with a demo configuration
make docs-serve # documentation
make release # dist/fr0ntier-vX.Y.Z-{arm,x64}.tar.gz + checksums.txt
Dry-run development mode¶
fr0ntier serve --dev (or --root DIR) never executes system commands: every rendered
file is written under the sandbox root and every command is appended to
run/fr0ntier/dryrun.log inside it. A demo configuration (router preset, WireGuard,
objects, policies, DNAT) and the user admin / Fr0ntierDemo!2026 are created.
Editions¶
The ARM and x64 editions are the same code compiled for two architectures
(GOARCH=arm64 and GOARCH=amd64); there are no architecture-specific source files.
Hardware differences (Raspberry Pi sensors, throttling flags, board tuning) are
detected at run time. fr0ntier version and the About page show the edition.
Releasing¶
- Update
VERSIONandCHANGELOG.md. git tag v$(cat VERSION) && git push --tags.- The Release workflow runs the tests, builds
fr0ntier-vX.Y.Z-arm.tar.gzandfr0ntier-vX.Y.Z-x64.tar.gzpluschecksums.txt, and publishes one GitHub release per version with both editions attached and a download table on top of the CHANGELOG notes. The installer downloads and verifies the right one.