mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-25 02:57:52 -06:00
refactor: split the pack and manifest builders
generate_pack, generate_emulator_pack, generate_manifest, _main and the other long functions of generate_pack.py are split by stage. A platform pack is planned once (_PlatformPlan) and written by _PlatformPackBuild, whose lookups generate_pack binds; the emulator pack and the manifest follow the same shape. The destinations a build has taken live in _Placed. Public builders keep their names and keyword callers: options past the eighth parameter are typed with Unpack[TypedDict], read once, and an unknown key still raises TypeError. The imports at the bottom of the module move to the top. The pack and manifest bytes are unchanged. generate_emulator_pack now takes zip_contents by keyword: pipeline.py:599 and test_verify_emulator_evidence.py:66 pass it by name. _data_directory_members, _select_variants and _manifest_core_entries take their options from the 9th argument by keyword.
This commit is contained in:
1 parent
9bb8d89acd
commit
338d1cc7b9
1 file changed
+3002
-2375
+3002
-2375
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user