Files
wordcraft/packaging/linux
skylartaylor 4279762e28 fix(nightly): start every Linux format through the launch profile
On top of #7746 at 99b15ac2, keeping his commits.

The deb/rpm wrapper (one shared launcher in package.sh), the AppImage AppRun, the
Arch launcher, the plain tar's bin/wordcraft and the Flatpak bundle built from
that tar now exec the real binary with
`--launch-profile nightly-v1 --profile-root $HOME/.local/share/wordcraft-nightly
--`. The XDG redirects are gone: the flavour derives the stable boundary from
them, so the chosen profile sat inside it and the build refused to start. The
real binary keeps the ../lib/wordcraft-nightly/ layout in every format, a bare
--version/-V still goes straight to it, and the archive policy allows and
requires the launcher's binary.

nightly_compile_gui passes WORDCRAFT_BUILD_CHANNEL and WORDCRAFT_VERSION
explicitly (WORDCRAFT_OVERRIDE_VERSION was read by nothing here), so the build is
the nightly channel and its "WordCraft <version> (nightly-v1)" line is what
nightly_build_gui and the macOS verifier already check.

The nightly metainfo drops its mediatypes in the deb/rpm and Flatpak trees,
matching the desktop file's dropped MimeType. profile_root accepts the nightly
Flatpak's own id and still refuses a stable sandbox, so the nightly Flatpak can
start at all. Sonar's coverage exclusions name both binaries' main.rs and the
Windows-only identity module: his two coverable new lines are in main.rs, which
the Linux coverage job never runs, which is the whole of the 0.0% on new code.

Found by the one capped cargo check: the font-store match had a `()` arm and a
`bool` arm (use_font_store returns bool), so the crate did not type-check; the
call is now a statement, as the CLI already writes it.
2026-11-24 23:21:24 +01:00
..