Compare commits

..
Author SHA1 Message Date
skylartaylor 51b6808789 fix(nightly): test the probe's fresh-name rule instead of the old fixed name
gate (ubuntu) failed on `app_dirs::tests::permanent_probe_does_not_replace_an_existing_entry`:
the write probe now takes a fresh name per attempt (so a probe left behind by an
interrupted launch cannot make a writable profile look unwritable), but the test
still planted the old fixed `.deckcraft-write-probe` and expected the check to
fail. The test now covers what the probe guarantees: an existing entry at the
probe's name is left byte-for-byte intact and the probe takes the next name, all
eight names taken is an error rather than a truncation, and a successful check
leaves nothing behind.
2026-11-25 01:27:34 +01:00
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 37a82eac0a fix(nightly): guard the compile boundary, keep stage names, record the port
nightly_compile_gui refuses signing configuration before cargo. The archive
header keeps the validated stage name, so a stage symlink cannot rename a
member.

docs/nightly-release-preparation.md records that the pinned shared producer
and signer admit only PhotoCraft, so that port is a go-live prerequisite.
2026-11-25 00:56:52 +01:00
skylartaylor f224526b55 fix(nightly): search the launcher text literally in the launch test
The lint job shellchecks every packaging script and failed on SC2016 in
packaging/linux/nightly-launch-test.sh, which greps the launcher for the literal
`[ "$here" = /usr/bin ]`. The `$here` is text being searched for, not a variable
to expand, so disable SC2016 on that line with the same directive package.sh uses.
2026-11-25 00:34:21 +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
skylartaylor 6a5c8bd90f feat(nightly): Windows, macOS and app-side isolation on top of #2350
Bases on Dylan M. Taylor's #2350 (Linux nightly packaging, the callers, the
installed policy and its contract tests) instead of duplicating it.

Adds the Nightly app-side pieces: DECKCRAFT_BUILD_CHANNEL=nightly-v1 with the
prepared version, the ai.storyteller.deckcraft.nightly package/bundle id and the
nightly-v1 window/AUMID, the Launcher launch-profile protocol with the early
--version answer, and a validated profile root covering every piece of user
state (ui.json/prefs.json, logs, AutoRecover, the user dictionary and the
session lease/record) with no stable fallback. FLATPAK_ID is accepted only for
DeckCraft Nightly's own Flatpak instance.

Windows gains nightly.ps1 plus package.ps1 -Nightly/-BuildOnly and
sign.ps1 -Required/-CheckOnly/-CheckBuildEnvironment with their synthetic suites;
macOS gains the unsigned bundle, signer and verifier with their tests; both get
deeper-background icons and provenance. One line of Dylan's nightly-common.sh is
tightened to the exact version line the desktop now prints.
2026-11-24 22:56:30 +01:00
Dylan M. Taylor 832efa93bb packaging: isolate nightly data dirs, fix fmt, and port linux nightly.sh 2026-11-24 16:18:27 -05:00
Dylan M. Taylor 15dc0b2f94 fix(nightly): fix CI lint/lockfile failures and address review comments
- Remove invalid `queue: max` key from `.github/workflows/nightly-sign.yml` concurrency block and update `packaging/nightly-release-tests.py`
- Sync `.github/workflows/actions.lock` with `gh actions-lock`
- Fix `sed` delimiter conflict in `packaging/linux/package.sh` Exec substitution
- Align Nightly AppImage zsync UPDATE_INFO pattern with channel-only BASENAME
- Select `ai.storyteller.deckcraft.nightly-v1` runtime app ID for `DECKCRAFT_BUILD_CHANNEL=nightly-v1` builds to match Nightly StartupWMClass
2026-11-24 14:21:56 -05:00
Dylan M. Taylorandskylartaylor e4a966d035 ci(nightly): enable nightly workflows for supervised manual runs
Ports Skylar's (@skylartaylor) storytold/photocraft#16594 (Enable nightly
for supervised manual runs) to DeckCraft:

- Add .github/nightly-signing-policy.json (v3 policy adapted for
  storytold/deckcraft, repository_id 1408294296, ci.yml workflow 377160704,
  storytold_deckcraft Sonar project, and reviewed manual_actors).
- Add .github/workflows/nightly.yml and .github/workflows/nightly-sign.yml
  pinned to craft-common-actions @605d58766e8f536564da8fc81d3676ac86816dea
  with exact context guards and manual dispatch only.
- Add docs/nightly-release-preparation.md and
  packaging/nightly-release-tests.py adapted for DeckCraft.

Credit to Skylar (@skylartaylor) for the original implementation in
storytold/photocraft#16594.

Co-authored-by: skylartaylor <[email protected]>
2026-11-24 14:14:28 -05:00
Dylan M. Taylor 1efc4b58d3 packaging(linux): support co-installable nightly packages 2026-11-24 13:33:52 -05:00
2 changed files with 20 additions and 20 deletions
Generated
+19 -19
View File
@@ -1268,7 +1268,7 @@ checksum = "0c87e182de0887fd5361989c677c4e8f5000cd9491d6d563161a8f3a5519fc7f"
[[package]]
name = "deckcraft"
version = "0.19.1"
version = "0.19.0"
dependencies = [
"arboard",
"chrono",
@@ -1292,7 +1292,7 @@ dependencies = [
[[package]]
name = "deckcraft-anim"
version = "0.19.1"
version = "0.19.0"
dependencies = [
"deckcraft-geom",
"deckcraft-model",
@@ -1301,7 +1301,7 @@ dependencies = [
[[package]]
name = "deckcraft-cli"
version = "0.19.1"
version = "0.19.0"
dependencies = [
"deckcraft-engine",
"deckcraft-mcp",
@@ -1311,14 +1311,14 @@ dependencies = [
[[package]]
name = "deckcraft-color"
version = "0.19.1"
version = "0.19.0"
dependencies = [
"craft-drawingml",
]
[[package]]
name = "deckcraft-engine"
version = "0.19.1"
version = "0.19.0"
dependencies = [
"chrono",
"craft-mime",
@@ -1346,7 +1346,7 @@ dependencies = [
[[package]]
name = "deckcraft-fonts"
version = "0.19.1"
version = "0.19.0"
dependencies = [
"epaint_default_fonts",
"harfrust 0.13.3",
@@ -1358,7 +1358,7 @@ dependencies = [
[[package]]
name = "deckcraft-format"
version = "0.19.1"
version = "0.19.0"
dependencies = [
"craft-deckcraft-format",
"craft-rtf",
@@ -1369,7 +1369,7 @@ dependencies = [
[[package]]
name = "deckcraft-geom"
version = "0.19.1"
version = "0.19.0"
dependencies = [
"craft-drawingml",
"kurbo",
@@ -1378,7 +1378,7 @@ dependencies = [
[[package]]
name = "deckcraft-mcp"
version = "0.19.1"
version = "0.19.0"
dependencies = [
"craft-mcp-server",
"deckcraft-engine",
@@ -1389,7 +1389,7 @@ dependencies = [
[[package]]
name = "deckcraft-media"
version = "0.19.1"
version = "0.19.0"
dependencies = [
"craft-audio",
"craft-media",
@@ -1402,7 +1402,7 @@ dependencies = [
[[package]]
name = "deckcraft-model"
version = "0.19.1"
version = "0.19.0"
dependencies = [
"craft-drawingml",
"deckcraft-color",
@@ -1415,7 +1415,7 @@ dependencies = [
[[package]]
name = "deckcraft-pdf"
version = "0.19.1"
version = "0.19.0"
dependencies = [
"craft-pdf",
"deckcraft-fonts",
@@ -1433,7 +1433,7 @@ dependencies = [
[[package]]
name = "deckcraft-ppt"
version = "0.19.1"
version = "0.19.0"
dependencies = [
"deckcraft-color",
"deckcraft-engine",
@@ -1448,7 +1448,7 @@ dependencies = [
[[package]]
name = "deckcraft-pptx"
version = "0.19.1"
version = "0.19.0"
dependencies = [
"craft-cfb",
"craft-drawingml",
@@ -1468,7 +1468,7 @@ dependencies = [
[[package]]
name = "deckcraft-render"
version = "0.19.1"
version = "0.19.0"
dependencies = [
"craft-metafile",
"deckcraft-anim",
@@ -1487,7 +1487,7 @@ dependencies = [
[[package]]
name = "deckcraft-text"
version = "0.19.1"
version = "0.19.0"
dependencies = [
"chrono",
"deckcraft-color",
@@ -1501,7 +1501,7 @@ dependencies = [
[[package]]
name = "deckcraft-ui-egui"
version = "0.19.1"
version = "0.19.0"
dependencies = [
"craft-ui",
"craft-update",
@@ -1527,7 +1527,7 @@ dependencies = [
[[package]]
name = "deckcraft-web"
version = "0.19.1"
version = "0.19.0"
dependencies = [
"craft-web-api",
"craft-web-host",
@@ -6740,7 +6740,7 @@ checksum = "9440ea3e5aeabb0ac63af70daf835274065238cdd0cec83418f417eae38bacee"
[[package]]
name = "xtask"
version = "0.19.1"
version = "0.19.0"
dependencies = [
"serde_json",
]
+1 -1
View File
@@ -4,7 +4,7 @@ members = ["crates/*", "apps/*", "xtask"]
default-members = ["crates/*", "apps/deckcraft", "apps/deckcraft-cli"]
[workspace.package]
version = "0.19.1"
version = "0.19.0"
edition = "2024"
license = "MIT OR Apache-2.0"
rust-version = "1.95"