refactor: keep standalone layouts in a file apart

The layouts every list carried grew the download of each run by up
to 30% for an option few use. They now live in
install/standalone/<platform>.json, written by the same --manifest run
and fetched only by a run given --standalone, beside --manifest first.
The list names the builds (standalone_builds). A missing, unreachable
or invalid file stops --standalone on one line, code 1.
This commit is contained in:
Abdessamad Derraz committed 2026-11-12 04:41:22 +01:00
1 parent 03f80eb570
commit 9cb9fec49e
13 files changed
+924 -77

No files matched your search

+9
View File
@@ -1883,6 +1883,15 @@ def _publish_manifests(api: Path) -> list[tuple]:
_record(targets / source.name)
assets.append((targets / source.name, f"Target list: {source.stem}",
"application/json", "schemas/target-manifest.schema.json"))
# What install.py --standalone reads beside the list, apart so that no
# other run downloads it.
standalone = api / "standalone"
standalone.mkdir(parents=True, exist_ok=True)
for source in sorted((_REPO_ROOT / "install" / "standalone").glob("*.json")):
shutil.copy2(source, standalone / source.name)
_record(standalone / source.name)
assets.append((standalone / source.name, f"Standalone layouts: {source.stem}",
"application/json", "schemas/install-standalone.schema.json"))
# Every change each updated platform file carries, for a maintainer who
# reviews them by script: the Exports page linked only the files.
exports = api / "exports"