Batch 2A review fixes on top of 4279762e:
- One launcher (packaging/linux/nightly-launcher.sh) serves the app-owned
nightly tar, the deb/rpm wrapper, the AppImage AppRun, the Arch handoff and
the Flatpak bundle. It passes an already-supplied --launch-profile (and
--version/-V) straight through, so the ArtCraft Launcher's own profile root is
honoured instead of being wrapped into file names, and it resolves its own
folder (also when a shell finds it through PATH) rather than a relative path.
- The profile moves to ${XDG_DATA_HOME:-$HOME/.local/share}/wordcraft-nightly,
which persists inside the Flatpak sandbox; the sandbox home does not, so
preferences, recovery and autosaves were lost on every exit.
- package.sh's nightly tar step uses the tar's real member paths (no usr/), so
the tar format no longer aborts and the Flatpak bundle can be built from it.
- The app-owned tar uses the standard layout: `wordcraft` is the launcher and
`wordcraft-bin` the GUI (was wordcraft.real). The archive allowlist and its
tests follow, and nightly-build.yml's exact member check accepts the OFL-*.txt
licences CRAFT_FONTS_DIR adds.
- Windows: the print helper runs before prepare_launch(), so File > Print works
in a Nightly build instead of hitting the launch-profile refusal.
- sign.ps1 keeps the stable signing step's random create-new temp folder; only
the Nightly additions remain.
- Drop our dormant nightly-dispatch.yml, as in the other apps.
- profile_root: a test pins the Flatpak's own data folder as an accepted profile.
Tests: new packaging/linux/nightly-package-test.sh renders package.sh's nightly
tar with stub binaries and runs the extracted launcher (plain, the Launcher
form, --version, XDG_DATA_HOME, a PATH lookup from another directory, and the
AppImage and flat layouts); nightly-arch-tar-test.sh covers the Launcher form
and the data-home profile.
- Fix a compile error in the flavour's own window body: the unclean-session notice flag
(an Arc) was moved into the window closure and then read after run_native, so
cargo check failed with E0382. The window body now takes its own clone, as the exit
hook already did; found by the first capped cargo check in this pass.
Windows packaging
See installation policy checks for the installer scope and path gates.
Nightly build and signing boundary
package.ps1 -Arch x64 -Nightly -BuildOnly is for the secret-free compilation job.
It refuses signing credential variables and builds the GUI only, without CLI,
portable marker, installer or associations. Its *-nightly.unsigned.zip is an
internal intermediate, not the final feed artifact. There is no unsigned
publication switch.
The separate trusted producer signing job safely unpacks that new intermediate, checks its exact identity/inventory, then invokes the existing backend:
pwsh packaging/windows/sign.ps1 -Required -CheckOnly
pwsh packaging/windows/sign.ps1 -Required -Files <stage>/wordcraft.exe
Missing or partial configuration fails. -Required verifies Authenticode and
a signer certificate after the existing signtool verification. Stable local
packaging keeps its existing optional-signing policy. The producer independently
verifies the final signature, PE identity and inventory before archiving under
the normal feed filename, and refuses to overwrite prepared outputs. It never
executes the payload in the signing step. Real keys belong only to that step,
not compilation. These interfaces do not configure or grant access to keys.
The signing-policy fixtures use generated dummy values and a mocked compiler boundary; they do not prove real certificate signing or release readiness.