Files
AniCraft/packaging
Dylan M. Taylorandskylartaylor e1e212f05b nightly: pin signer tooling, forward signing secrets, and fix macOS notice layout (#686)
* Switch on supervised nightlies on the nightly-signer branch

* nightly-tests: check the Sonar gate shape the candidate contract admits

`packaging/nightly-release-tests.py` gains test_sonar_policy_keeps_the_shared_candidate_contract,
which mirrors the Sonar rules the pinned candidate contract() applies - non-empty issue scope,
accepted failures one-to-one with the issue types, one condition per gate metric, all six live gate
conditions, the reviewed A threshold and the A..E bound - so this tree refuses the shape before a
nightly run reaches admission.

* nightly: re-pin the shared workflow to the Windows and macOS registry rows

craft-common-actions main is now `fc7124a1defa96813aee060031dc8b4d2afa3652`: #370 admits this
app's Windows and macOS nightly registry rows, on top of #369 (shared helper checkouts kept out of
the app's clean-source check, and macOS on `macos-15`), which follows #364 and #363.

Both callers name it in `uses` and `tooling-revision`, the policy names it as
`producer_tooling_revision`, `signer_tooling_revision` and `producer_workflow_ref`, and the
activation notes record what the pin is.

Checked at that commit: the candidate `contract()` for this policy, `nightly_app.admit` on `main`
and on `nightly-signer`, all three platform targets with their release-ref plug-ins and
entrypoints, and this app's packaging suites.

* nightly: re-pin the shared workflow to the exact-analysis admission

craft-common-actions main is now `be00e5ccd18b68e950c8a08532f2230e7c3d0cba`: #371 admits a
candidate on the built commit's own Sonar analysis instead of main's latest, after #370 (the
Windows and macOS registry rows) and #369 (helper checkouts kept out of the clean-source check,
macOS on `macos-15`), which follow #364 and #363.

Both callers name it in `uses` and `tooling-revision`, the policy names it as
`producer_tooling_revision`, `signer_tooling_revision` and `producer_workflow_ref`, and the
activation notes record what the pin is.

Checked at that commit: the candidate `contract()` for this policy (its rules are unchanged by
#371), `nightly_app.admit` on `main` and on `nightly-signer`, all three platform targets with their
release-ref plug-ins and entrypoints, and this app's packaging suites.

* nightly-tests: read quoted flow keys, and state the signer-environment prerequisite

The trust-closure flow-mapping reader split its masked copy, so a quoted key (`{"environment":
release}`, `{'uses': ...}`) became `''` and the scan accepted a route it must refuse. It now splits
the original bracket-free mapping and keeps the mask only for the shape check. New cases cover a
double- and single-quoted `environment` key, a quoted `uses` key, and a harmless quoted key that
must still be read rather than masked.

The activation notes and the signer caller said the `release` environment already trusts
`nightly-signer`. It admits only `release` today, so both now state that the environment must
admit `nightly-signer` before the first dispatch.

* nightly: pin signer tooling, forward signing secrets, and fix macOS notice layout

---------

Co-authored-by: skylartaylor <hi@skylar.cc>
2026-11-28 11:51:01 -05:00
..

Packaging

How AniCraft is built into installers (ADR 0026). The family's shared release workflow (storytold/craft-common-actions) runs these scripts; docs/release.md describes a release.

Path What
env.sh Version, build variables and APP_ID, sourced by every script
check-icons.sh The icons every package names exist
check-store-readiness.sh Store metadata checks: Flatpak manifests, AppStream, desktop entry, winget/MSIX (ADR 0094)
windows/ MSI (WiX v5), portable zip, symbols zip; install policy checks (README)
macos/ Universal AniCraft.app on a DMG, CLI zip, signing and notarization
linux/ AppImage, deb, rpm, tar.gz; Flatpak manifests; desktop entry, metainfo, MIME types
web/ The web build's zip

Portable copies (ADR 0094)

The Windows zip and the Linux tar.gz contain a file named anicraft-portable at their top. A copy with that marker keeps preferences, autosave, logs, plug-ins, templates, thumbnails and the offline guide in a data/ folder beside the marker instead of the user's settings folder. The app looks for the marker next to the program, above bin/, next to AniCraft.app (macOS) and next to the .AppImage. Installed packages (MSI, DMG, deb, rpm, Flatpak, Arch) never ship it. Preferences › About shows which kind of copy is running and its folders.

AppImage desktop integration (ADR 0094)

The AppImage's AppRun starts the app directly. On the first start, the app offers once (non-modally) to add itself to the applications menu; the engine's desktop.integrate then writes the desktop entry (with Exec pointing at the .AppImage), the MIME types and the hicolor icons from this folder into $XDG_DATA_HOME (~/.local/share), never into system folders. Preferences › About removes them (desktop.remove). Headless:

anicraft-cli exec --sample desktop.integrate '{"appimage": "/home/me/Apps/AniCraft.AppImage", "data_home": "/home/me/.local/share"}'

Store readiness

check-store-readiness.sh runs in the Packaging lint workflow (store-readiness job) and locally (it skips tools that aren't installed). It validates; it never submits. Submissions to Flathub, winget and the Microsoft Store are made by the team. winget manifests go in windows/winget/*.yaml and an MSIX manifest in windows/msix/AppxManifest.xml; the check reads their required fields once they exist.

Nightly

The preview channel the ArtCraft Launcher installs beside stable AniCraft has its own scripts, which the stable ones never source: nightly-common.sh (the four ANICRAFT_* values and the frozen, clean tree), linux/nightly.sh with linux/nightly-launch.sh (the plain nightly tar's launcher: craft-common-actions's canonical template, rendered for this app; anicraft is the launcher and anicraft-bin the GUI beside it) and linux/nightly-package-launch.sh (the launcher the deb/rpm, AppImage, Arch handoff and Flatpak install, with their own profile folder), macos/nightly.{sh,sh-sign,sh-verify} with macos/nightly-lib.sh and macos/nightly_plist.py, and windows/nightly.ps1 behind windows/package.ps1 -Nightly -BuildOnly. Every artifact is GUI only: no anicraft-cli, portable marker, .desktop, DMG, association or URL type. Signing is the trusted step's (windows/sign.ps1 -Required, macos/nightly-sign.sh, the Linux key in .github/).

nightly-tests.py runs the synthetic suites (archive policy, the launcher in each format's layout, icon/plist rendering, and the Apple scripts against stand-in tools), and windows/nightly-{package,signing}-tests.ps1 check the spec, the source identity, the flavor binding and the compiler/signer boundary. The three platforms are built for real, unsigned, by .github/workflows/nightly-builds.yml behind the full-ci label. See docs/nightly-builds.md for the contract and the data root.