mirror of
https://github.com/storytold/cadcraft.git
synced 2026-12-01 18:25:32 -06:00
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.
26 lines
958 B
Python
26 lines
958 B
Python
#!/usr/bin/env python3
|
|
"""Run the existing synthetic packaging suites together; no app build or signing."""
|
|
import importlib.util
|
|
from pathlib import Path
|
|
import unittest
|
|
|
|
|
|
def main() -> int:
|
|
here = Path(__file__).resolve().parent
|
|
suite = unittest.TestSuite()
|
|
for name, relative in (
|
|
("photo_archive_suite", "nightly-archive-tests.py"),
|
|
("photo_plist_suite", "macos/nightly_plist_tests.py"),
|
|
("photo_release_dispatch_suite", "nightly-release-tests.py"),
|
|
("photo_mac_sign_suite", "macos/nightly_sign_tests.py"),
|
|
):
|
|
spec = importlib.util.spec_from_file_location(name, here / relative)
|
|
module = importlib.util.module_from_spec(spec)
|
|
spec.loader.exec_module(module)
|
|
suite.addTests(unittest.defaultTestLoader.loadTestsFromModule(module))
|
|
return 0 if unittest.TextTestRunner(verbosity=2).run(suite).wasSuccessful() else 1
|
|
|
|
|
|
if __name__ == "__main__":
|
|
raise SystemExit(main())
|