mirror of
https://github.com/storytold/gridcraft.git
synced 2026-12-01 10:14:21 -06:00
Give GridCraft the isolated nightly-v1 channel from the nightlies-lead kit, rebased on dylanmtaylor's #4733 head: his Linux tar, shared helpers, Arch wrapper and Flatpak/nfpm changes stay his and are not re-authored here (thanks, Dylan). This commit adds the app side, Windows and macOS packaging, and the dormant release registration. App side: - build.rs selects the channel (GRIDCRAFT_BUILD_CHANNEL), refuses any other value and requires the prepared GRIDCRAFT_VERSION for a nightly, which becomes the PE ProductVersion and the version the app reports. - launch_profile.rs implements the Launcher protocol (--launch-profile nightly-v1 --profile-root <abs> -- files…, separate tokens only) and answers both --version forms before any root, log, identity, IPC or window work. - profile_root.rs fences every stable data root per OS (settings and logs, the control token folder, both MSI install folders, the XDG folders plus the system installs and the Flatpak row, the four macOS Library rows and the bundle), refuses GRIDCRAFT_CONFIG_DIR, an inherited FLATPAK_ID, traversal and alias escapes, and proves the profile writable. - app_dirs.rs is the single data-root resolver: validated profile, then GRIDCRAFT_CONFIG_DIR, then the platform default; ui.json, prefs.json and logs follow it. - nightly_session.rs keeps a lease and an unclean-exit record, finished in on_exit (the only path macOS ⌘Q runs before AppKit ends the process). - process_identity.rs sets the nightly Windows AUMID before any window; stable never does. - A nightly skips the updater, the control server (and refuses --control), and the inherited control variables; the control-token folder can be pointed at the profile. - ui-egui gains the channel (app id, name, version, commit, window titles, stable-only services), which About, File ▸ Account, window titles and the updater guard use. The window keeps a Flatpak package's own id when FLATPAK_ID is set (#4733). - gridcraft-cli refuses the Launcher profile flags with exit 2. Packaging: packaging/windows/nightly.ps1 with package.ps1 -Nightly and sign.ps1 -Required/-CheckOnly/-CheckBuildEnvironment; macOS nightly.sh, nightly-lib.sh, nightly-sign.sh, nightly-verify.sh and nightly_plist.py; the nightly icon set rendered from a deeper-field vector master by packaging/nightly-icons.py, with provenance. The Linux tar now stages that icon (one line changed in Dylan's script). Release: dormant nightly.yml, nightly-sign.yml and nightly-dispatch.yml (literal false && everywhere), the v3 policy example with no authority, the stable Linux public key, actionlint's queue suppression, the packaging-lint source-contract job, sonar.sources plus the exact fixture scope, and packaging/nightly-release-tests.py. Dylan's enabled callers, installed policy and shorter docs are superseded so the port lands switched off; the policy content stays in his branch for the enable PR. skylartaylor <skylartaylor@users.noreply.github.com>