fix: regenerate the launcher list after main

Main changed install.py without the launcher index, so --add-app
refused every launcher and nine tests failed on main itself. The demo
script added a list without a type, and an archive-size test still
built the data-tree refs without the needed flag the builder reads.
This commit is contained in:
Abdessamad Derraz committed 2026-11-06 21:48:46 +01:00
1 parent cfc950b834
commit 966ab201ea
3 files changed
+11 -10

No files matched your search

+2 -1
View File
@@ -89,7 +89,8 @@ VIDEO_FPS = 25
def game_bytes(name: str) -> bytes:
"""Bytes of a game no catalog names, the same on every run."""
seed = hashlib.sha256(name.encode("utf-8")).digest()
blocks, counter = [], 0
blocks: list[bytes] = []
counter = 0
while len(blocks) * 32 < GAME_BYTES:
blocks.append(hashlib.sha256(seed + counter.to_bytes(4, "big")).digest())
counter += 1