mirror of
https://github.com/storytold/cadcraft.git
synced 2026-12-02 02:38:30 -06:00
The Nightly flavor refuses to start without `--launch-profile nightly-v1 --profile-root <dir> -- <files>`, but every Linux nightly launcher still only exported CADCRAFT_CONFIG_DIR and ran the binary bare, so an installed, AppImage, Arch or Flatpak nightly could not start at all -- and the nightly tar had no launcher, so an unpacked copy shared stable's settings folder and app.ron. Every format now starts the GUI the flavor's way: the deb/rpm wrapper, the AppImage AppRun (still a script, not a symlink), the Arch launcher, the Flatpak wrapper, and a new launcher shipped inside the flat tar. The profile is $XDG_DATA_HOME/cadcraft-nightly (inside the Flatpak's own sandbox folder), which passes the fence. A plain version query and the Launcher's own query form are passed through once, never doubled, so `--version` still answers without a profile. The window identity the flavor selects is now the StartupWMClass every nightly desktop entry names. Also: isolate the renamed nightly CLI, which still read stable's settings folder; let the flavor accept its own nightly Flatpak instance (FLATPAK_ID is set inside the sandbox, so the blanket refusal made the bundle unusable) while keeping every other instance refused; and make nightly-common.sh compare the exact `CADCraft <version> (nightly-v1)` line and also run the Launcher's query form, which must not create the root. The build now passes CADCRAFT_BUILD_CHANNEL and CADCRAFT_VERSION explicitly (build.rs reads those, not the override). Tests: new packaging/nightly-launcher-tests.py, wired into nightly-tests.py, runs every launcher against a recorder; the archive and Arch tests cover the new tar member. Also drops the unused `APP_ID` const in main.rs, which the branch's `cargo clippy --workspace --all-targets -- -D warnings` gate rejects.