mirror of
https://github.com/storytold/figcraft.git
synced 2026-12-03 15:31:21 -05:00
557d0e50e0
The Nightly is a separate build channel and a separate launch profile, so it can run beside a stable FigCraft without sharing a byte of user state. Everything stays switched off until the producer and signer are dispatched. Build and launch - `FIGCRAFT_BUILD_CHANNEL=nightly-v1` puts the binary on the channel; the build refuses a nightly without an exact `FIGCRAFT_VERSION` (also accepted as the wrappers' `FIGCRAFT_OVERRIDE_VERSION`), and bakes `FIGCRAFT_BUILT_VERSION`. - `--launch-profile nightly-v1 --profile-root <dir> -- [files...]` is the only way a nightly starts; a nightly without it says "Open FigCraft Nightly from ArtCraft Launcher", and a stable build refuses the profile. `--version`, `-V` and the Launcher's form print `FigCraft <version> (nightly-v1)` before logging, updates, fonts or any window. - The profile is the app's only data root: preferences and recent files, recovery copies, installed plugins and the suite's font store all live in it. `services::config_dir` answers with the profile root for a nightly, so nothing resolves the stable folder. - `profile_root` refuses a root that overlaps any stable folder (the platform config folder, the MSI's folders, the app bundle or install, the Flatpak's data folder), a portable copy, the `FIGCRAFT_CONFIG_DIR` override, an alias or a dangling link, and never falls back to stable. - Nightly-only: no control channel, no inherited `FIGCRAFT_CONTROL_PORT`, no automation roots, no invite-link registration, no updater (the Launcher owns the version), a session-health record with an unclean-exit notice, and its own window id (`ai.storyteller.figcraft.nightly-v1`), AUMID, About name and version. Packaging - Windows: `packaging/windows/nightly.ps1` (`package.ps1 -Nightly -BuildOnly`) builds the GUI only, refuses signing material before compiling, and checks the PE header, ProductName, ProductVersion and the version query; `sign.ps1` gains `-Required`, `-CheckOnly` and `-CheckBuildEnvironment`. - macOS: `packaging/macos/nightly.sh` (unsigned .app zip), `nightly-sign.sh` (Developer ID, hardened runtime, notarize, staple; the keychain comes from this app's own import-cert.sh), `nightly-verify.sh` (checks the archive, the signature and both version queries) and `nightly_plist.py` (FigCraft Nightly.app with FigCraftVersion, no document or URL types). - Icons: `packaging/nightly-icons.py` derives the deeper-field Nightly frames, `.ico` and `.icns` from the committed 1024 master, with `nightly-provenance.json` recording the hashes. - `packaging/nightly-tests.py` runs the app-side synthetic suites (icons, plist, macOS signing against stand-in Apple tools, caller contracts); `packaging/check-app-specific.sh` runs them. Credit: the Linux nightly packaging this flavour plugs into is dylanmtaylor's PR #2603 (packaging/linux/nightly.sh, nightly-common.sh, nightly-archive.py, the workflows and the policy); this commit leaves those files alone.