packaging: add the isolated CADCraft nightly for Windows and macOS

The app-side flavor and the Windows/macOS producers, on top of Dylan's
nightly-linux-packaging branch: the Linux producer, the shared nightly helpers,
the release-ref callers and the policy, and the eframe persistence fix are his
(9bbbfb49) and stay as he wrote them. This commit adds what was missing for a
nightly to be a separate, isolated app on all three platforms.

App side: the `CADCRAFT_BUILD_CHANNEL=nightly-v1` build channel with its own
icon, version identity, product name and Windows AUMID; the Launcher's
`--launch-profile nightly-v1 --profile-root <abs> --` protocol with the early
`--version` answer in both forms, before logging, identity, IPC or any window;
the profile fences (stable roots, portable layout, install boundary, aliases,
`FLATPAK_ID`, and `CADCRAFT_CONFIG_DIR` accepted only when it names the profile
itself, so a Launcher wrapper can export it); one data-root hook so the settings
folder *and* eframe's `app.ron` are the profile, with autosave/Drawing Recovery,
logs, reports and the single-instance socket inside it; the session lease and
unclean-exit record finished from `on_exit` (macOS Cmd+Q); updater, control
server and agent surfaces off in this channel; the channel name in the window
title, drawn caption and About.

Windows: `packaging/windows/nightly.ps1` with `package.ps1 -Nightly
-BuildOnly` and `sign.ps1 -Required/-CheckOnly/-CheckBuildEnvironment`.
macOS: `nightly.sh`, `nightly-lib.sh`, `nightly-sign.sh`, `nightly-verify.sh`
and `nightly_plist.py`.
Shared: the `nightly-tests.py` runner over Dylan's release contracts plus the
archive, plist and macOS signing suites; the no-build `nightly-source-contract`
lint job; the dormant `nightly-dispatch.yml` (no schedule); the stable Linux key
file his tests read; and the nightly icon set with its provenance.
This commit is contained in:
skylartaylor
2026-11-24 22:30:27 +01:00
parent 9bbbfb49e9
commit b462abfdff
43 changed files with 3552 additions and 45 deletions
+54
View File
@@ -0,0 +1,54 @@
{
"schema": "craft-nightly-release-policy/v3",
"repository": "storytold/cadcraft",
"repository_id": null,
"producer_workflow_id": null,
"producer_workflow_path": ".github/workflows/nightly.yml",
"producer_tooling_revision": null,
"producer_workflow_ref": null,
"signer_workflow_path": ".github/workflows/nightly-sign.yml",
"signer_tooling_revision": null,
"release_branch": "release",
"manual_actors": [],
"max_age_seconds": null,
"candidate_policy": {
"schema": "craft-nightly-candidate-policy/v3",
"epoch": null,
"repository": "storytold/cadcraft",
"branch": "main",
"required_workflows": null,
"sonar": {
"organization": null,
"project": null,
"app_id": null,
"check_name": null,
"details_url": null,
"issue_types": null,
"accepted_conditions": null,
"required_conditions": null,
"debt": null
}
},
"max_artifact_bytes": null,
"automatic_signer_actors": [],
"platforms": {
"windows-x86_64": {
"unsigned_artifact_name": "nightly-unsigned-windows-x86_64",
"trust": {
"publisher_subject": "CN=Learning Machines Inc, O=Learning Machines Inc, L=Atlanta, S=Georgia, C=US"
}
},
"linux-x86_64": {
"unsigned_artifact_name": "nightly-unsigned-linux-x86_64",
"trust": {
"fingerprint": "2B76741B414AAD6CD33E631213A005C0B9D7C3ED"
}
},
"macos-aarch64": {
"unsigned_artifact_name": "nightly-unsigned-macos-aarch64",
"trust": {
"apple_team_id": "DJ6XS33FX8"
}
}
}
}
+24
View File
@@ -9,3 +9,27 @@ This file describes how CADCraft is released.
- **Windows installer:** `packaging/windows/cadcraft.wxs` (WiX v5 + `WixToolset.UI.wixext`). Its wizard has a Shortcuts page: the Start Menu shortcut is always created, the desktop shortcut is opt-in (`DESKTOPSHORTCUT=1` for silent installs, `DESKTOPSHORTCUT=0` drops it on an upgrade; otherwise upgrades keep the previous choice).
- **File types:** `.dxf` and `.dwg` (macOS document types, Windows "Open with", Linux MIME types).
- **Local packaging test:** `packaging/macos/package.sh` (ad-hoc signed DMG), `packaging/linux/package.sh`, `packaging/web/package.sh`.
## Release-ref nightly
CADCraft's Windows, Linux and macOS nightly is documented in
[`nightly-release-preparation.md`](nightly-release-preparation.md). `.github/workflows/nightly.yml`
and `nightly-sign.yml` are enabled for **supervised manual runs only** by the reviewed release
managers: there is no schedule, and `.github/workflows/nightly-dispatch.yml` (the automatic
completion transport) is still literally switched off. No platform secret is granted to the
producer. Stable `release.yml`, its triggers, environment and secrets are unchanged.
The signer-owned files (`.github/workflows/nightly-sign.yml`,
`.github/nightly-signing-policy.json`, `packaging/windows/sign.ps1`, the macOS nightly signing
scripts `nightly-sign.sh`/`nightly-verify.sh`/`nightly-lib.sh`/`import-cert.sh` and their
entitlements, `.github/nightly-linux-signing-key.asc`, and every transitive reusable pin) travel
on a reviewed `main` → `release` sync and are compared against the previous trusted release, not a
manifest from `main`. Nightlies share the existing Windows signing identity with stable, so a
suspected key compromise affects both channels: stop nightlies too, and have the identity's owner
revoke/rotate it.
Before the first run, the shared `craft-common-actions` caller must admit CADCraft (its jobs are
still gated on PhotoCraft), and the app-side flavor must be in the built channel: a nightly binary
is refused without `--launch-profile nightly-v1 --profile-root <dir>`, so every Launcher wrapper
must pass them (see the preparation doc).