fix: lay out RetroPie standalone packages

RetroPie's YAML listed no standalone_cores, so every package was laid
out as a libretro core and the standalone files of amiberry, dolphin,
hatari, mame and ppsspp never reached the pack. Packages without the
lr- prefix (bar the retroarch frontend) are now standalone, and names
shipped both ways are dual-mode.
This commit is contained in:
Abdessamad Derraz committed 2026-10-20 23:04:42 +02:00
1 parent 027379c065
commit cf54730a17
4 files changed
+164 -5

No files matched your search

+16
View File
@@ -289,6 +289,22 @@ class RetroPiePackageList(unittest.TestCase):
self.assertEqual(config["inherits"], "retroarch")
self.assertEqual(config["base_destination"], "BIOS")
def test_a_package_built_outside_libretro_runs_standalone(self):
"""hatari ships as lr-hatari and as hatari: both layouts are read."""
scraper = self._scraper(
{
"retropie_packages.sh": '__version="4.8.12"\n',
"scriptmodules/libretrocores/lr-hatari.sh": 'rp_module_id="lr-hatari"\n',
"scriptmodules/libretrocores/lr-mgba.sh": 'rp_module_id="lr-mgba"\n',
"scriptmodules/emulators/hatari.sh": 'rp_module_id="hatari"\n',
"scriptmodules/emulators/openmsx.sh": 'rp_module_id="openmsx"\n',
"scriptmodules/emulators/retroarch.sh": 'rp_module_id="retroarch"\n',
}
)
config = scraper.generate_platform_yaml()
self.assertEqual(config["standalone_cores"], ["hatari", "openmsx"])
self.assertEqual(config["dual_mode_cores"], ["hatari"])
def test_the_version_is_the_one_the_setup_script_declares(self):
scraper = self._scraper(
{