feat: flatten zips, standalone copies, retropie grouping

This commit is contained in:
Abdessamad Derraz
2026-04-03 12:04:55 +02:00
parent 9ba8b02ff1
commit 8f93ee2239
11 changed files with 1332 additions and 22 deletions

View File

@@ -743,15 +743,13 @@ def group_identical_platforms(
inherits[platform] = False
continue
base_dest = config.get("base_destination", "")
entries = []
for sys_id, system in sorted(config.get("systems", {}).items()):
for fe in system.get("files", []):
dest = fe.get("destination", fe.get("name", ""))
full_dest = f"{base_dest}/{dest}" if base_dest else dest
sha1 = fe.get("sha1", "")
md5 = fe.get("md5", "")
entries.append(f"{full_dest}|{sha1}|{md5}")
entries.append(f"{dest}|{sha1}|{md5}")
fp = hashlib.sha1("|".join(sorted(entries)).encode()).hexdigest()
if target_cores_cache:

View File

@@ -974,10 +974,7 @@ def _build_readme(
credits = "\nCONTRIBUTORS\n\n"
for cb in contributors:
username = cb.get("username", "")
contribution = cb.get("contribution", "")
pr = cb.get("pr")
pr_ref = f" (#{pr})" if pr else ""
credits += f" @{username} - {contribution}{pr_ref}\n"
credits += f" @{username}\n"
credits += "\n"
return header + source_info + guide + credits + footer

View File

@@ -2215,6 +2215,7 @@ def generate_mkdocs_nav(
return [
{"Home": "index.md"},
{"Which pack?": "which-pack.md"},
{"Platforms": platform_nav},
{"Systems": system_nav},
{"Emulators": emu_nav},