Contribute

Thanks for helping. This page covers the repo layout, how to build and test, and the conventions the project follows. For a security problem, do not open an issue: see security policy.

You do not need to write code to help. Testing and clear bug reports are some of the most useful things you can do. Run Fiordland on a real machine and fill in the hardware report, open a bug report or feature request, or ask in the Discord before you start on something bigger.

Where things live

PathWhat it is
crest/The Hyprland shell, plain QML on Quickshell.
crest-greeter/The greetd login screen, which reuses crest's theme and components.
packages/PKGBUILDs for everything Fiordland ships. packages/aur/ holds bundled AUR packages that the old Caelestia based crest needed.
iso/The archiso profile for the live ISO.
flavors/Overlays on the ISO profile, selected with FLAVOR= (currently xfce).
container/The Fiordland XFCE container image.
web/The website. Its pages are generated by ops/docs/build.py, see below.
ops/Server side scripts: docs generator, mirrors, stable channel, wiki seed pages, bot setup, and ops/site/ for publishing ISOs (release-iso) and news (post-news).
bot/The Discord bot and its tests.
tools/Build helpers, the lint and release checks, and VM control.
docs/Guides for users and maintainers.

tawaki (the package manager), rawaru (the installer) and kuaka (the update app) and weka (the Desktops app) live in their own repos. Changes to them go there; this repo only packages their tagged releases.

Setup

You can lint and run the tests on any Linux with git, curl, python3, shellcheck, yamllint and pytest, plus check-jsonschema from PyPI:

pipx install check-jsonschema

Building packages and the ISO needs an Arch based host with archiso, devtools and base-devel.

Check your change

tools/lint.sh
bash ops/mirrors/test_sync.sh
bash tools/test_release_check.sh
python3 -m pytest bot

tools/lint.sh runs shellcheck on every shell script (except iso/profiledef.sh, which archiso sources) and every PKGBUILD, yamllint, the GitHub schemas for workflows and issue forms, and a JSON syntax check. CI runs the same commands, so a green run locally is a green run there.

tools/release-check.sh compares the versions in packages/tawaki, packages/rawaru, packages/kuaka and packages/weka with the newest tag of each repo and checks that the pinned sha256sums match the tagged archive. It needs network access and fails when a PKGBUILD is behind a new tag. tools/namcap.sh runs namcap on PKGBUILDs or built packages and prints what it finds. It needs an Arch host. CI runs it for information; its findings do not fail the build.

Build

./build.sh              build all packages and the ISO into out/
SKIP_AUR=1 ./build.sh   skip the chroot builds of crest and crest-greeter
REBUILD=1 ./build.sh    rebuild packages even when the published ones match
FLAVOR=xfce ./build.sh  build a flavor from flavors/

build.sh reuses a package from https://fiordlandlinux.org/repo/x86_64 when the file for the PKGBUILD's current version is already published. Bump pkgrel (or pkgver) when you change what a package installs, or your change will not reach the ISO. Without the signing key it builds an unsigned repo and says so. Release signing happens on the build machine only; see docs/signing-key.md.

Without SKIP_AUR=1, tools/aurbuild.sh builds crest and crest-greeter in a clean chroot (pass package names to build others, such as those in packages/aur/) with makechrootpkg. Create the chroot once with mkarchroot chroot/root base-devel.

Test in a VM

./vm.sh --share         boot the newest ISO in out/ with the repo shared into the guest
./vm.sh --headless      no window or audio
./vm.sh --fresh         start from an empty disk and fresh UEFI variables
./vm.sh --bios          boot with legacy BIOS instead of UEFI
./vm.sh --disk          boot the installed disk, not the ISO

tools/vmctl.py drives a running VM through its QMP and guest agent sockets in vm/. exec runs a command in the guest through the guest agent. The other operations can be chained: shot FILE, click X Y, move X Y, key COMBO, type TEXT, sleep SECONDS, size and quit. shot needs ImageMagick (magick) on the host.

python3 tools/vmctl.py exec 'uname -r'
python3 tools/vmctl.py click 800 450 type hello key ret shot screen.png

ops/stable/test.sh YYYY/MM/DD installs into a headless VM from an Arch archive snapshot, updates, and checks that the system boots.

Packages

Conventions

Pull requests

  1. Fork the repo and branch from main.
  2. Run the checks above and say in the description what you ran and what you could not test.
  3. Fill in the pull request template. Link the issue it closes.

Bug reports, feature requests and real hardware reports each have an issue form. Questions go on the wiki Help desk.

Questions?

Fiordland is a small project. Ask in the Discord, search the wiki or open an issue.