mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-24 18:47:53 -06:00
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:
1 parent
03f80eb570
commit
9cb9fec49e
13 files changed
+924
-77
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user