mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-06-12 10:05:24 -05:00
fix: manifest dest paths relative to bios dir
This commit is contained in:
+16
-7
@@ -507,6 +507,22 @@ def main() -> None:
|
|||||||
|
|
||||||
os_type = detect_os()
|
os_type = detect_os()
|
||||||
|
|
||||||
|
# Early exit for listing
|
||||||
|
if args.list_platforms:
|
||||||
|
available = [
|
||||||
|
"retroarch", "batocera", "recalbox", "retrobat",
|
||||||
|
"emudeck", "lakka", "retrodeck", "romm", "bizhawk",
|
||||||
|
]
|
||||||
|
print("Available platforms:")
|
||||||
|
for p in available:
|
||||||
|
print(f" {p}")
|
||||||
|
detected = detect_platforms(os_type)
|
||||||
|
if detected:
|
||||||
|
print("\nDetected on this system:")
|
||||||
|
for name, path in detected:
|
||||||
|
print(f" {name}: {path}")
|
||||||
|
return
|
||||||
|
|
||||||
# Platform detection or override
|
# Platform detection or override
|
||||||
if args.platform and args.dest:
|
if args.platform and args.dest:
|
||||||
platforms = [(args.platform, args.dest)]
|
platforms = [(args.platform, args.dest)]
|
||||||
@@ -532,13 +548,6 @@ def main() -> None:
|
|||||||
for name, path in platforms:
|
for name, path in platforms:
|
||||||
print(f" Found {name.capitalize()} at {path}")
|
print(f" Found {name.capitalize()} at {path}")
|
||||||
|
|
||||||
if args.list_platforms:
|
|
||||||
if not platforms:
|
|
||||||
platforms = detect_platforms(os_type)
|
|
||||||
for name, path in platforms:
|
|
||||||
print(f" {name}: {path}")
|
|
||||||
return
|
|
||||||
|
|
||||||
if len(platforms) > 1 and not args.list_targets and sys.stdin.isatty():
|
if len(platforms) > 1 and not args.list_targets and sys.stdin.isatty():
|
||||||
platforms = _prompt_platform_choice(platforms)
|
platforms = _prompt_platform_choice(platforms)
|
||||||
|
|
||||||
|
|||||||
+856
-847
File diff suppressed because it is too large
Load Diff
+314
-314
File diff suppressed because it is too large
Load Diff
+905
-176
File diff suppressed because it is too large
Load Diff
+1424
-686
File diff suppressed because it is too large
Load Diff
+1620
-882
File diff suppressed because it is too large
Load Diff
+790
-781
File diff suppressed because it is too large
Load Diff
+780
-51
File diff suppressed because it is too large
Load Diff
+508
-508
File diff suppressed because it is too large
Load Diff
@@ -1799,7 +1799,7 @@ def generate_manifest(
|
|||||||
repo_path = _get_repo_path(sha1, db) if sha1 else ""
|
repo_path = _get_repo_path(sha1, db) if sha1 else ""
|
||||||
|
|
||||||
entry: dict = {
|
entry: dict = {
|
||||||
"dest": full_dest,
|
"dest": dest,
|
||||||
"sha1": sha1,
|
"sha1": sha1,
|
||||||
"size": file_size,
|
"size": file_size,
|
||||||
"repo_path": repo_path,
|
"repo_path": repo_path,
|
||||||
@@ -1855,7 +1855,7 @@ def generate_manifest(
|
|||||||
source_emu = fe.get("source_emulator", "")
|
source_emu = fe.get("source_emulator", "")
|
||||||
|
|
||||||
entry = {
|
entry = {
|
||||||
"dest": full_dest,
|
"dest": dest,
|
||||||
"sha1": sha1,
|
"sha1": sha1,
|
||||||
"size": file_size,
|
"size": file_size,
|
||||||
"repo_path": repo_path,
|
"repo_path": repo_path,
|
||||||
|
|||||||
+5
-1
@@ -2520,7 +2520,11 @@ class TestE2E(unittest.TestCase):
|
|||||||
"test_existence", self.platforms_dir, self.db, self.bios_dir,
|
"test_existence", self.platforms_dir, self.db, self.bios_dir,
|
||||||
registry_path, emulators_dir=self.emulators_dir,
|
registry_path, emulators_dir=self.emulators_dir,
|
||||||
)
|
)
|
||||||
manifest_dests = {f["dest"] for f in manifest["files"]}
|
base = manifest.get("base_destination", "")
|
||||||
|
manifest_dests = set()
|
||||||
|
for f in manifest["files"]:
|
||||||
|
d = f"{base}/{f['dest']}" if base else f["dest"]
|
||||||
|
manifest_dests.add(d)
|
||||||
|
|
||||||
self.assertEqual(manifest_dests, zip_names)
|
self.assertEqual(manifest_dests, zip_names)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user