- Both Linux launchers dispatch the Launcher's protocol and a bare version query before the
XDG_DATA_HOME/HOME guard, so neither is refused for a HOME it never reads.
- `nightly.ps1` builds into the `-TargetDir` its archive steps read.
- The writable probe retries on a leftover file with its name and removes only the file it created.
- The planted-record-link test writes at RECORD rather than a sibling name, so it exercises the
alias it plants.
gate / gate (ubuntu-24.04) failed channel::tests::the_commit_is_read_back_only_from_a_nightly_version:
`commit_for` used `is_ascii_hexdigit`, which also accepts A-F, so `...gABCDEF012345` read back
as a commit although the producer's version pattern is lower-case. The check now takes digits
and a-f only, as the nightly version pattern already requires.
- `nightly_compile_gui` calls `nightly_refuse_signing_env` before cargo, so an exported signing
key cannot reach the compiler or any dependency build script. The helper existed but no path
called it.
- The candidate-workflow check reads the whole `push:` mapping by indentation instead of a
contiguous run of non-empty lines, so a `paths:`/`paths-ignore:` filter after a blank line is
still rejected; a negative fixture covers that layout.
gate / gate (ubuntu-24.04) and SonarCloud's coverage shard 2 both failed on
`each_platform_keeps_its_published_folder`: it compared a `join`ed path against a literal with
Windows backslashes, so on Linux the function's `C:\\.../GridCraft` never matched. Both
tests now build their expectation with the same `PathBuf::join` on the same base, and the
`cfg!(windows)` home switch is gone, so they hold on either host.
shellcheck reads `A && B || C` as a possible false branch. The identity and keychain
checks are now an explicit `if`, with the same behaviour and message.
- Put his nightly.yml, nightly-sign.yml and installed signing policy back byte
for byte (no `false &&`, his five manual actors, his 605d5876 pin), and drop
our dormant duplicates: nightly-dispatch.yml, the policy template and the
actionlint waiver that only hid the `queue:` key he removed.
- Adapt nightly-release-tests.py to the enabled pair: no schedule, his exact
context guards, the release managers in caller and policy, one pin, the
installed policy's fields and platforms, plus this branch's guards for the
committed Linux key and the Sonar fixture scope.
- cargo fmt --all (17 hunks in 7 files); clean under rustfmt 1.10 and 1.100.
- Flat nightly tar uses the kit layout: `gridcraft` is the launcher and
`gridcraft-bin` the GUI it starts, and the launcher never starts itself.
- docs: his go-live doc, one stale sentence corrected, plus a flavor section.
- Drop the unused GRIDCRAFT_CONFIG_DIR stable knob; an empty XDG_CONFIG_HOME
now falls back to ~/.config.
Dylan's ports keep the nightly identities but start the GUI directly, and a nightly build
refuses to start without --launch-profile nightly-v1 --profile-root <dir>. Ship the launcher
every Linux nightly format needs, so an installed, extracted or sandboxed nightly never runs
against the stable profile (his remaining re-review items close with it).
- deb/rpm: usr/bin/gridcraft-nightly is a launcher; the GUI moves to
usr/lib/gridcraft-nightly/gridcraft, which nfpm.yaml carries with mode 0755. A stable stage
has no such file, so the three-line entry is dropped and the rendered stable nfpm.yaml stays
byte-identical to his head.
- AppImage: AppRun is a script, not the usr/bin/gridcraft symlink, and usr/bin/gridcraft-nightly
is installed beside it; the desktop Exec/TryExec name the launcher.
- Arch handoff: nightly-arch-launch.sh passes the profile tokens instead of relocating the four
XDG folders (the profile holds settings, logs, the control token and the session record).
- Flatpak: bin/gridcraft-nightly is installed and is the manifest's command: and the desktop
entry's Exec/TryExec. profile_root now accepts that package's own id
(ai.storyteller.gridcraft.nightly) and still refuses the stable id and every other one.
- plain tarballs: bin/gridcraft-nightly in package.sh's tree and gridcraft-nightly in the flat
nightly.sh archive, which nightly-archive.py now requires.
The profile root is ${XDG_DATA_HOME:-$HOME/.local/share}/gridcraft-nightly/profile in every
format; it sits beside, never inside, the stable rows.
Also from the re-review: the nightly metainfo no longer lists mediatypes and names the launcher
as its binary, the nightly desktop file and metainfo are validated now that the tools are
present, and nightly-common.sh passes GRIDCRAFT_VERSION on the build command as well as
inheriting it and checks the exact identity the binary prints (with the output in the message).
packaging/linux/nightly-linux-launch-tests.py runs the launcher in both moved-tree layouts and
stages deb, tar and AppImage with stub nfpm/appimagetool/strip, so the wrappers are tested
without cargo; nightly-arch-tar-test.sh asserts the launcher argv.
Builds on dylanmtaylor's co-installable Linux packages (#4733, @dylanmtaylor).
skylartaylor <skylartaylor@users.noreply.github.com>
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>
Ported from storytold/photocraft#16594 by Skylar (@skylartaylor), adapted for GridCraft:
- Add .github/nightly-signing-policy.json (v3 policy for storytold/gridcraft, repo ID 1408285582, CI workflow 380135773, Sonar project storytold_gridcraft; producer_workflow_id left null until nightly.yml lands on main)
- Add .github/workflows/nightly.yml and .github/workflows/nightly-sign.yml for supervised manual workflow_dispatch runs pinned to craft-common-actions@605d58766e8f536564da8fc81d3676ac86816dea
- Add docs/nightly-release-preparation.md and packaging/nightly-release-tests.py
Credit: Skylar (@skylartaylor), storytold/photocraft#16594
Co-authored-by: skylartaylor <hi@skylar.cc>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.