RediWM is a Wayland compositor written in Zig (OpenGL ES) that includes everything in one process
Releases and install
install.shinstalls a prebuilt per-distro tarball (--buildcompiles; running from a checkout implies--build). It must stay self-contained up to the download, sincecurl | shhas no repo yet.make-release.shbuilds each tarball in a clean podman/docker container of its distro and installs it with the realinstall.shin a fresh one; run it before publishing and read the verify step's output.- One tarball per distro, not per architecture-and-glibc. Package ABIs
differ (libjpeg is
.so.8on Arch/Ubuntu,.so.62on Debian/Fedora with a different struct layout). A derivative uses its parent's tarball; if its libraries don't match,unresolved_libs(missing libs or too-new glibc symbol versions) or a failed package install falls back to a source build. A checksum mismatch never falls back: it dies. - Derivatives are matched by name when
os-releasedoesn't say: Artix has noID_LIKE. Artix also has no systemd, sopkg_installmaps the release'ssystemd-libstolibudev; otherwise pacman satisfies it withartix-archlinux-support, a dummy that enables the Arch repositories.make-release.shverifies the Arch tarball on Artix and CachyOS too (derivatives_of); their pacman hooks print errors under rootless podman (no network sandbox, no systemd), which are harmless. DEPENDSis generated from the built binaries'NEEDEDlibraries (release-build.sh), never hand-kept; only the extras (Xwayland, portals, Mesa drivers) are listed by hand. Libraries bundled inlib/rediwmare excluded, and which ones get bundled depends on what the build container has installed, so never install the distro's own wlroots there.- Releases always use the pinned, patched wlroots from
build-wlroots.sh, whose recipe hash includes the script itself (editing even a comment rebuilds everyone's private prefix).rediwm's RUNPATH picks up the build prefix when linking;release-build.shscrubs it with patchelf andrelease-verify.shrejects any/work/path. - CPU is
-Dcpu=x86_64_v2. Zig defaults to the build machine's CPU, which would put illegal instructions into every user's binary. Releases are x86_64 only; other CPUs build from source. - Checksums come from the same GitHub release as the tarballs, so they catch corruption, not a compromised release. Signing is not done yet.
- Programs to install come from the build's
programslist (build/install_paths.zig: every exe or file the install step puts inbin/), besideinstall-prefix. The install, deb and verify scripts read it; never hand-list programs or globbin/(zig build leaves retired ones there). A new helper needs only its install step inbuild/.