mirror of
https://github.com/storytold/cadcraft.git
synced 2026-12-01 18:25:32 -06:00
The Opus batch 2A review of nightly/cadcraft-flavor found five items; all are fixed here, with tests, and nothing outside this channel changes. 1. rustfmt: `cargo fmt --all` (main.rs, nightly_session.rs, process_identity.rs, profile_root.rs, ui-egui chrome.rs/lib.rs), so the first `cargo xtask ci` step passes; `cargo fmt --all -- --check` is clean with rustfmt 1.10.0-stable, the version hosted CI uses. 2. Version line: stable's `version_string()` is back to the exact clap form (`cadcraft <workspace version>`), so `launch_args::version_stops_parsing` passes again and the stable log line is unchanged. The Nightly identity moved to `nightly_version_line()` = `CADCraft <prepared> (nightly-v1)`, used by `prepare_launch`'s query (plain and Launcher forms) and, through `reported_version`, by the log. A unit test pins the kit's form and that the app name never gains a "Nightly". 3. `cargo xtask assets`: ATTRIBUTION.md rows for the six new files under `assets/app-icon/` (README, the nightly mark and its 1024 master, the .ico, the .icns and the provenance JSON). The rule was reproduced locally and reports no missing asset. 4. Deleted the dormant duplicates beside Dylan's enabled pair: `.github/workflows/nightly-dispatch.yml` and `docs/nightly-signing-policy.example.json`; `docs/releasing.md` now says there is no automatic transport yet. His `nightly.yml`, `nightly-sign.yml` and `.github/nightly-signing-policy.json` are untouched (no schedule, the five release managers). 5. `forbidden_roots()` now also fences stable's eframe storage folder per OS (`$XDG_DATA_HOME/ai.storyteller.cadcraft`, `~/Library/Application Support/ai.storyteller.cadcraft`, `%APPDATA%\ai.storyteller.cadcraft`), where stable's `app.ron` lives, with one assertion per OS in the existing fence tests. Kit standards applied: the flat tar uses the standard layout -- `cadcraft` is the launcher and `cadcraft-bin` the GUI (archive policy, archive tests and launcher tests updated; a stub-`cargo` render of `nightly.sh` and the extracted launcher were checked). The launcher passes `--launch-profile`, `--profile-root`, `--version` and `-V` through once, and refuses a missing or aliased `cadcraft-bin` instead of exec'ing it. The version line is `<App> <version> (nightly-v1)`. The tar also ships `assets/app-icon/cadcraft-nightly.png` rather than copying the stable 256 px icon. Optional nits taken: `nightly.ps1` drops the unread CADCRAFT_OVERRIDE_VERSION; `nightly-signing-tests.ps1` gives its clean-build case the fixture's CADCRAFT_BUILD_SHA/DATE and a `git` stub, so it reaches the mocked compiler boundary instead of failing the source preflight; the no-build lint job also renders the Arch handoff (`nightly-arch-tar-test.sh`). Tests run here: `python3 packaging/nightly-tests.py` 77 tests OK, `bash packaging/linux/nightly-arch-tar-test.sh` PASS, `bash -n` over the nine launcher/packaging scripts, `cargo fmt --all -- --check` clean, and `cargo check --locked -p cadcraft -p cadcraft-ui-egui --tests` plus `cargo clippy --locked` (same crates, --all-targets) both clean at the QA-211 gate. pwsh, shellcheck and actionlint are not installed on this host, so the PowerShell suites and the two linters were not re-run here.