Commit Graph
7 Commits
Author SHA1 Message Date
skylartaylor 659c586765 fix(nightly): answer queries without a data folder and close review gaps
The tar launcher answers --version/--help before the data-folder check, so a
query is not turned into an error, and the recorder test covers it.

The write probe uses a fresh name per attempt, so a probe left behind by an
interrupted launch cannot make a writable profile look unwritable. The profile
validator also fences Dictionaries/user.dic, so a link there cannot append
words to the stable app's dictionary.

The exit-hook test runs in a child with DECKCRAFT_NO_PREFS=1, nightly.ps1
passes -TargetDir to Cargo, the Windows signing fixture derives its source
identity from the checkout, and the release tests reject a concurrency block
on the producer. The Flatpak bundler documents which of the two ids is the
bundle id and which is the window id.
2026-11-25 00:58:30 +01:00
skylartaylor a70784e637 fix(nightly): close the batch-2b review and standardise the Linux launchers
- rustfmt: module order in ui-egui; the dead app_dirs::is_override and the
  Flatpak-id cmp_owned are gone, and `cargo fmt --check` is clean.
- ATTRIBUTION.md: rows for the nightly icons and their provenance file, so
  `cargo xtask assets` matches every file under assets/.
- Every Linux format now starts through one packaging/linux/nightly-launch.sh:
  the flat tar's `deckcraft` + `deckcraft-bin`, the nightly FHS tree's
  bin/deckcraft-nightly + bin/deckcraft-bin, /usr/bin/deckcraft-nightly
  reaching the fixed /usr/lib copy, the AppImage's AppRun and usr/bin copy,
  the Arch handoff and the Flatpak's /app/bin. Version/help and an existing
  --launch-profile pass through, a caller's `--` never becomes a file name,
  and no parent-relative path is used. The heredoc copies and
  nightly-arch-launch.sh are gone.
- The nightly Flatpak installs that launcher and the renamed GUI, starts
  `command: deckcraft-nightly` and names it in the metainfo; the bundle step
  now requires both members of the nightly tarball.
- Nightly never touches the stable updater: the launch identity is sampled
  into the update runtime, Help > Check for Updates... answers "DeckCraft
  Nightly is updated by ArtCraft Launcher", and tick/show/start_pending_update
  are inert.
- Coverage: build_channel's tests compile into the app test target, the
  entrypoint and build scripts leave the sonar coverage measurement, and new
  tests cover the data-root decisions, the profile install/validate pair and
  the CLI's refusal of the desktop protocol (plus no macOS-local exit test).

Checked: packaging/nightly-tests.py (48), both launcher recorder suites,
bash -n and sh -n, cargo fmt --check, cargo metadata --locked, and a stub
render of package.sh's nightly tar and deb plus the Flatpak manifest. No local
cargo check or clippy: the capacity gate never opened (load1 18-39).
2026-11-25 00:29:06 +01:00
skylartaylor 8ab5c7b94e fix(nightly): isolate every Linux format and close Dylan's review items
Land on top of #2350 so the nightly package is co-installable in every format.

The deb/rpm wrapper, a new AppImage AppRun script, the Arch launcher, a new
bin/deckcraft-nightly launcher in the Flatpak tree (used by its desktop entry)
and a new deckcraft-nightly launcher inside the plain nightly tar all start the
app with --launch-profile nightly-v1 and a profile under
$XDG_DATA_HOME/deckcraft-nightly/launcher/profiles/deckcraft, beside the fenced
stable boundary. A bare --version is still a version query.

nightly-common.sh now checks the exact "DeckCraft <version> (nightly-v1)" line
the build prints. Nightly metainfo drops its mediatypes in the deb/rpm and
Flatpak trees, the Arch launcher test expects the profile arguments, and the
nightly archive policy allows and requires the launcher.

Found and fixed with one capped cargo check: begin_with_health is a Session
method, not a free function.
2026-11-24 23:14:26 +01:00
Dylan M. Taylor 1efc4b58d3 packaging(linux): support co-installable nightly packages 2026-11-24 13:33:52 -05:00
Dylan M. Taylor 82573331a8 packaging(flatpak): add OCI image build and GHCR publishing helper (#1625) 2026-10-31 18:52:58 -04:00
Dylan M. Taylor bdcb532608 packaging: [[ ]] tests, named positional parameters, explicit returns and a default case (SonarCloud S7688, S7679, S7682, S131) (#1212)
Use [[ ]] for conditional tests in the bash packaging scripts, give positional
parameters a name before use, end the shared helpers in common.sh with an explicit
return (bare return keeps the last command's status), and give the FreeBSD arch
case a no-op default. No behaviour change.
2026-10-23 11:16:44 -04:00
db67e0109f Release: Windows arm64, Flatpak aarch64, AppImage zsync updates, README Downloads (#9)
- Windows: add arm64 (aarch64-pc-windows-msvc) to the matrix. package.ps1, sign.ps1 and the
  WiX source already handled it; nothing in the dependency tree blocks the target (clippy -D
  warnings is clean for it).
- Flatpak: x86_64 and aarch64 bundles repackage the Linux job's tarball (PhotoCraft's
  approach: same binaries and embedded fonts as the AppImage/deb/rpm, no Rust build). The
  from-source manifest stays for Flathub; packaging-lint keeps the two in sync. Both now grant
  --socket=pulseaudio so slide-show audio/video plays in the sandbox.
- AppImage: embed gh-releases-zsync update information and publish the .zsync beside it.
- Jobs that sign nothing (version, linux, flatpak, freebsd, web) leave the release environment,
  so a branch dispatch is a dry run; the draft-release job now requires every build.
- README: Downloads section.

Co-authored-by: Brandon Thomas <shared2@storyteller.ai>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 09:43:53 -04:00