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 <hi@skylar.cc>
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
7 changed files with 16 additions and 16 deletions
+9 -9
View File
@@ -5,21 +5,21 @@ version: 'v0.0.3'
workflows:
'.github/workflows/ci.yml':
- 'actions/checkout@v7.0.1'
- 'step-security/harden-runner@v2.23.0'
- 'step-security/harden-runner@v2.22.4'
'.github/workflows/freebsd.yml': []
'.github/workflows/house-rules.yml': []
'.github/workflows/lockfile.yml':
- 'actions/checkout@v7.0.1'
- 'step-security/harden-runner@v2.23.0'
'.github/workflows/nightly-macos.yml':
- 'actions/checkout@v7.0.1'
- 'step-security/harden-runner@v2.23.0'
- 'step-security/harden-runner@v2.22.4'
'.github/workflows/nightly-sign.yml': []
'.github/workflows/nightly.yml': []
'.github/workflows/nightly-macos.yml':
- 'actions/checkout@v7.0.1'
- 'step-security/harden-runner@v2.22.4'
'.github/workflows/nix.yml': []
'.github/workflows/packaging-lint.yml':
- 'actions/checkout@v7.0.1'
- 'step-security/harden-runner@v2.23.0'
- 'step-security/harden-runner@v2.22.4'
'.github/workflows/release.yml': []
'.github/workflows/sonarcloud.yml': []
'.github/workflows/windows-arm64.yml': []
@@ -29,8 +29,8 @@ dependencies:
commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
owner_id: 44036562
repo_id: 197814629
'step-security/harden-runner@v2.23.0':
ref: 'v2.23.0'
commit: 'sha1-aebdcf6156ab6691adf63218240e476564a1ed4c'
'step-security/harden-runner@v2.22.4':
ref: 'v2.22.4'
commit: 'sha1-1d88384fd173af6ecb012dfd0264a306b711241a'
owner_id: 88700172
repo_id: 422287306
+1 -1
View File
@@ -27,7 +27,7 @@ jobs:
CRAFT_FONTS_REF: 37827adc41fd165f9a9234ac40f94dbad353aa69
steps:
- name: Harden runner
uses: step-security/harden-runner@v2.23.0
uses: step-security/harden-runner@v2.22.4
with:
egress-policy: audit
- name: Check out craft-fonts
+1 -1
View File
@@ -22,7 +22,7 @@ jobs:
timeout-minutes: 10
steps:
- name: Harden runner
uses: step-security/harden-runner@v2.23.0
uses: step-security/harden-runner@v2.22.4
with:
egress-policy: audit
- uses: actions/checkout@v7.0.1
+1 -1
View File
@@ -36,7 +36,7 @@ jobs:
RUST_BACKTRACE: 1
steps:
- name: Harden runner
uses: step-security/harden-runner@v2.23.0
uses: step-security/harden-runner@v2.22.4
with:
egress-policy: audit
- uses: actions/checkout@v7.0.1
+1 -1
View File
@@ -33,7 +33,7 @@ jobs:
checks: read
attestations: write
id-token: write
uses: storytold/craft-common-actions/.github/workflows/nightly-release.yml@1754016e67ca9b74dfa4cf4678b2ac3548e9840f
uses: storytold/craft-common-actions/.github/workflows/nightly-release.yml@605d58766e8f536564da8fc81d3676ac86816dea
with:
tooling-revision: 605d58766e8f536564da8fc81d3676ac86816dea
producer_run_id: ${{ inputs.producer_run_id }}
+1 -1
View File
@@ -22,7 +22,7 @@ jobs:
actions: read
attestations: write
id-token: write
uses: storytold/craft-common-actions/.github/workflows/nightly-unsigned.yml@1754016e67ca9b74dfa4cf4678b2ac3548e9840f
uses: storytold/craft-common-actions/.github/workflows/nightly-unsigned.yml@605d58766e8f536564da8fc81d3676ac86816dea
with:
tooling-revision: 605d58766e8f536564da8fc81d3676ac86816dea
app-name: deckcraft
+2 -2
View File
@@ -28,7 +28,7 @@ jobs:
runs-on: windows-latest
steps:
- name: Harden runner
uses: step-security/harden-runner@v2.23.0
uses: step-security/harden-runner@v2.22.4
with:
egress-policy: audit
- uses: actions/checkout@v7.0.1
@@ -58,7 +58,7 @@ jobs:
contents: read
steps:
- name: Harden runner
uses: step-security/harden-runner@v2.23.0
uses: step-security/harden-runner@v2.22.4
with:
egress-policy: audit
- uses: actions/checkout@v7.0.1