mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-21 00:57:50 -06:00
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:
1 parent
cfc950b834
commit
966ab201ea
3 files changed
+11
-10
No files matched your search
@@ -27,8 +27,8 @@
|
|||||||
{
|
{
|
||||||
"dest": "roms/ports/retrobios/install.py",
|
"dest": "roms/ports/retrobios/install.py",
|
||||||
"repo_path": "install.py",
|
"repo_path": "install.py",
|
||||||
"size": 1112438,
|
"size": 1113711,
|
||||||
"sha256": "57e3cb6739a701181908773e603f17d2b10e1b0e2a5cde5cc4d5c97426da5dd4",
|
"sha256": "b17220355845692a087bbc29cdb4a1008f68b1423d1126f34f00fa0259b53184",
|
||||||
"executable": false
|
"executable": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -71,8 +71,8 @@
|
|||||||
"muos": {
|
"muos": {
|
||||||
"archive": {
|
"archive": {
|
||||||
"dest": "ARCHIVE/RetroBIOS.muxapp",
|
"dest": "ARCHIVE/RetroBIOS.muxapp",
|
||||||
"size": 1166065,
|
"size": 1167338,
|
||||||
"sha256": "1c9e5737a0b32c85108f556c2799cf0ebb5ce52cbd2bf501bc24783fa3a04b9a"
|
"sha256": "3ca24c5ba64437c1b2554238910b38463c160e74fcd59db675bac3fccd426d67"
|
||||||
},
|
},
|
||||||
"members": [
|
"members": [
|
||||||
{
|
{
|
||||||
@@ -92,8 +92,8 @@
|
|||||||
{
|
{
|
||||||
"name": "RetroBIOS/install.py",
|
"name": "RetroBIOS/install.py",
|
||||||
"repo_path": "install.py",
|
"repo_path": "install.py",
|
||||||
"size": 1112438,
|
"size": 1113711,
|
||||||
"sha256": "57e3cb6739a701181908773e603f17d2b10e1b0e2a5cde5cc4d5c97426da5dd4",
|
"sha256": "b17220355845692a087bbc29cdb4a1008f68b1423d1126f34f00fa0259b53184",
|
||||||
"executable": false
|
"executable": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -166,8 +166,8 @@
|
|||||||
{
|
{
|
||||||
"dest": ".config/modules/retrobios/install.py",
|
"dest": ".config/modules/retrobios/install.py",
|
||||||
"repo_path": "install.py",
|
"repo_path": "install.py",
|
||||||
"size": 1112438,
|
"size": 1113711,
|
||||||
"sha256": "57e3cb6739a701181908773e603f17d2b10e1b0e2a5cde5cc4d5c97426da5dd4",
|
"sha256": "b17220355845692a087bbc29cdb4a1008f68b1423d1126f34f00fa0259b53184",
|
||||||
"executable": false
|
"executable": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -89,7 +89,8 @@ VIDEO_FPS = 25
|
|||||||
def game_bytes(name: str) -> bytes:
|
def game_bytes(name: str) -> bytes:
|
||||||
"""Bytes of a game no catalog names, the same on every run."""
|
"""Bytes of a game no catalog names, the same on every run."""
|
||||||
seed = hashlib.sha256(name.encode("utf-8")).digest()
|
seed = hashlib.sha256(name.encode("utf-8")).digest()
|
||||||
blocks, counter = [], 0
|
blocks: list[bytes] = []
|
||||||
|
counter = 0
|
||||||
while len(blocks) * 32 < GAME_BYTES:
|
while len(blocks) * 32 < GAME_BYTES:
|
||||||
blocks.append(hashlib.sha256(seed + counter.to_bytes(4, "big")).digest())
|
blocks.append(hashlib.sha256(seed + counter.to_bytes(4, "big")).digest())
|
||||||
counter += 1
|
counter += 1
|
||||||
|
|||||||
@@ -318,7 +318,7 @@ class TheManifestCarriesTheArchiveSize(unittest.TestCase):
|
|||||||
registry = {ref: {"source_type": "zip", "source_url": f"https://x/{ref}.zip",
|
registry = {ref: {"source_type": "zip", "source_url": f"https://x/{ref}.zip",
|
||||||
"local_cache": str(data / ref)} for ref in ("pak", "old")}
|
"local_cache": str(data / ref)} for ref in ("pak", "old")}
|
||||||
members = [(str(data / ref / "a.bin"), f"{ref}/a.bin") for ref in ("pak", "old")]
|
members = [(str(data / ref / "a.bin"), f"{ref}/a.bin") for ref in ("pak", "old")]
|
||||||
refs = {f"{ref}/a.bin": (ref, ("s",), ref) for ref in ("pak", "old")}
|
refs = {f"{ref}/a.bin": (ref, ("s",), ref, True) for ref in ("pak", "old")}
|
||||||
listed = {entry["ref"]: entry for entry in
|
listed = {entry["ref"]: entry for entry in
|
||||||
_manifest_data_directories(members, refs, registry, "")}
|
_manifest_data_directories(members, refs, registry, "")}
|
||||||
self.assertEqual(listed["pak"]["archive_size"], 21_360_579)
|
self.assertEqual(listed["pak"]["archive_size"], 21_360_579)
|
||||||
|
|||||||
Reference in new issue
Block a user