chore: merge making a pack

This commit is contained in:
Abdessamad Derraz committed 2026-11-11 18:40:54 +01:00
commit 3234f071fa
50 files changed
+3664 -191

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@
# and Invoke-WebRequest throws on a cut transfer before the hash is read:
# the site's build rewrites this line there (scripts/sitebootstrap.py).
$mismatchAdvice = "The download was most likely cut short: try again. Within minutes of an update of this project the two files can come from caches of different ages. Waiting five minutes settles that."
$defaultInstallSha256 = "26fef8daf6087201d43e1c1cb5b69e255358f38f28ca1e45782984a0240dc7d3"
$defaultInstallSha256 = "0eb4260d873e9fa9186fec264a0f4d484707d58daf432d5addbe65feb4912ae2"
# The pin above refuses any changed byte: this cap only stops a body that
# cannot be the installer (a sign-in portal's page) before it is hashed.
$maximumInstallerBytes = 8MB
+1067 -35
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -23,7 +23,7 @@ DEFAULT_INSTALL_URL="https://raw.githubusercontent.com/Abdess/retrobios/main/ins
# curl or wget stop on a cut transfer before the hash is read: the site's
# build rewrites this line there (scripts/sitebootstrap.py).
MISMATCH_ADVICE="The download was most likely cut short: try again. Within minutes of an update of this project the two files can come from caches of different ages. Waiting five minutes settles that."
DEFAULT_INSTALL_SHA256="26fef8daf6087201d43e1c1cb5b69e255358f38f28ca1e45782984a0240dc7d3"
DEFAULT_INSTALL_SHA256="0eb4260d873e9fa9186fec264a0f4d484707d58daf432d5addbe65feb4912ae2"
# The pin above refuses any changed byte: this cap only stops a body that
# cannot be the installer (a sign-in portal's page) before it is hashed.
MAX_INSTALLER_BYTES=8388608
+8 -8
View File
@@ -27,8 +27,8 @@
{
"dest": "roms/ports/retrobios/install.py",
"repo_path": "install.py",
"size": 1285762,
"sha256": "26fef8daf6087201d43e1c1cb5b69e255358f38f28ca1e45782984a0240dc7d3",
"size": 1335308,
"sha256": "0eb4260d873e9fa9186fec264a0f4d484707d58daf432d5addbe65feb4912ae2",
"executable": false
},
{
@@ -71,8 +71,8 @@
"muos": {
"archive": {
"dest": "ARCHIVE/RetroBIOS.muxapp",
"size": 1339387,
"sha256": "7060180b1a8d93573eee7a7a083a3903822743f52d8a06a9691b40a04ecbafb6"
"size": 1388933,
"sha256": "803dad00f4a44c66d7d6623c8b722ce7797cedb4252ce30283f8cec932b24f16"
},
"members": [
{
@@ -92,8 +92,8 @@
{
"name": "RetroBIOS/install.py",
"repo_path": "install.py",
"size": 1285762,
"sha256": "26fef8daf6087201d43e1c1cb5b69e255358f38f28ca1e45782984a0240dc7d3",
"size": 1335308,
"sha256": "0eb4260d873e9fa9186fec264a0f4d484707d58daf432d5addbe65feb4912ae2",
"executable": false
},
{
@@ -166,8 +166,8 @@
{
"dest": ".config/modules/retrobios/install.py",
"repo_path": "install.py",
"size": 1285762,
"sha256": "26fef8daf6087201d43e1c1cb5b69e255358f38f28ca1e45782984a0240dc7d3",
"size": 1335308,
"sha256": "0eb4260d873e9fa9186fec264a0f4d484707d58daf432d5addbe65feb4912ae2",
"executable": false
},
{
+75 -4
View File
@@ -43,6 +43,7 @@
"removed",
"restored",
"backup",
"pack",
"end"
]
}
@@ -147,6 +148,9 @@
{
"$ref": "#/$defs/backup"
},
{
"$ref": "#/$defs/pack"
},
{
"$ref": "#/$defs/end"
}
@@ -178,7 +182,8 @@
"dry-run",
"list",
"remove",
"restore"
"restore",
"pack"
]
}
}
@@ -1022,7 +1027,8 @@
"dry-run",
"list",
"remove",
"restore"
"restore",
"pack"
]
},
"installed": {
@@ -1151,7 +1157,9 @@
"listed",
"made",
"deleted",
"not_deleted"
"not_deleted",
"planned",
"failed"
]
},
"choice": {
@@ -1352,7 +1360,70 @@
"listed",
"made",
"deleted",
"not_deleted"
"not_deleted",
"planned",
"failed"
]
},
"message": {
"type": "string"
}
}
},
"pack": {
"type": "object",
"additionalProperties": false,
"required": [
"event",
"platform",
"path",
"files",
"bytes",
"size",
"parts",
"status",
"message"
],
"properties": {
"event": {
"const": "pack"
},
"platform": {
"type": "string"
},
"path": {
"type": "string"
},
"files": {
"type": "integer",
"minimum": 0
},
"bytes": {
"type": "integer",
"minimum": 0
},
"size": {
"type": "integer",
"minimum": 0
},
"parts": {
"type": "array",
"items": {
"type": "string"
}
},
"status": {
"enum": [
"applied",
"written",
"unreadable",
"not_written",
"listed",
"made",
"deleted",
"not_deleted",
"planned",
"failed"
]
},
"message": {
+4 -3
View File
@@ -39,11 +39,11 @@ KEY_TYPES: dict[str, dict] = {
"folder", "dest", "system", "name", "bios_dir", "path", "member",
"list_version", "installed_version", "board", "core", "date", "moved_to",
), _TEXT),
"mode": {"enum": ["install", "check", "dry-run", "list", "remove", "restore"]},
"mode": {"enum": ["install", "check", "dry-run", "list", "remove", "restore", "pack"]},
"source": {"enum": ["remove", "install"]},
"state": {"enum": ["present", "wrong_hash", "missing"]},
"status": {"enum": ["applied", "written", "unreadable", "not_written", "listed", "made",
"deleted", "not_deleted"]},
"deleted", "not_deleted", "planned", "failed"]},
**dict.fromkeys((
"files", "files_done", "files_total", "bytes", "bytes_done", "bytes_total",
"bytes_local", "bytes_network", "size", "present", "missing", "wrong_hash",
@@ -52,7 +52,8 @@ KEY_TYPES: dict[str, dict] = {
), _COUNT),
**dict.fromkeys(("truncated", "ok", "interrupted", "required_only", "applied", "info",
"backup"), _FLAG),
**dict.fromkeys(("systems", "other_drives", "dests", "written", "choice"), _NAMES),
**dict.fromkeys(("systems", "other_drives", "dests", "written", "choice", "parts"),
_NAMES),
**dict.fromkeys(("platforms", "failed", "skipped", "left_out", "kept", "found",
"fallback"), _RECORDS),
}
+1
View File
@@ -905,6 +905,7 @@ GLANCE_GROUPS: tuple[tuple[str, tuple[str, ...]], ...] = (
("Look first", ("--check", "--dry-run", "--list-platforms", "--list-targets",
"--list-systems", "--list-cores", "--list-emulators")),
("From files on hand", ("--from", "--from-pack", "--manifest", "--offline")),
("Make a pack", ("--pack", "--split")),
("Remove and put back", ("--remove", "--file", "--backup", "--backups", "--restore",
"--delete-backup")),
("How the run talks", ("--tui", "--plain", "--no-input", "--yes", "--quiet", "--verbose",
+127 -4
View File
@@ -337,6 +337,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -363,7 +364,6 @@
^[[0;1;35mA/Enter^[[0m Install ^[[0;2mB/Esc^[[0m Back ^[[0;2mY/o^[[0m Change ^[[0;2m?^[[0m Help
@@ -376,7 +376,7 @@
^[[0;7;35m > Close^[[0m
Details
Change
More
@@ -997,6 +997,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -1019,7 +1020,6 @@
^[[0;1;35mA/Enter^[[0m Install ^[[0;2mB/Esc^[[0m Back ^[[0;2mY/o^[[0m Change ^[[0;2m?^[[0m Help
@@ -1194,7 +1194,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1433,3 +1433,126 @@
^[[0;1;35mA/Enter^[[0m Choose ^[[0;2mB/Esc^[[0m Back ^[[0;2m?^[[0m Help
=== pack-plan
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Make a pack^[[0m
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
^[[0;7;35m > Make the pack^[[0m
Change where
^[[0;1;35mA/Enter^[[0m Make ^[[0;2mB/Esc^[[0m Back ^[[0;2m?^[[0m Help
=== pack-plan-parts
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Make a pack^[[0m
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
In 3 parts of at most 3.9 GB, as FAT32 holds no file of 4 GB.
^[[0;7;35m > Make the pack^[[0m
Change where
^[[0;1;35mA/Enter^[[0m Make ^[[0;2mB/Esc^[[0m Back ^[[0;2m?^[[0m Help
=== pack-done
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: ^[[0;1;32mDone^[[0m
^[[0;1m Pack made: ^[[0;1;35m4^[[0;1m files, ^[[0;1;35m1023.4 KB^[[0;1m, in ^[[0;1;35m3^[[0;1m parts.^[[0m
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
On the other device, install from it with --from-pack.
^[[0;7;35m > Close^[[0m
^[[0;1;35mA/Enter^[[0m Close ^[[0;2mB/Esc^[[0m Back ^[[0;2m?^[[0m Help
+44 -5
View File
@@ -108,12 +108,12 @@
^[[0;1m ^[[0;1;35m4^[[0;1m files to download, ^[[0;1;35m1.0 MB^[[0m
BIOS folder:
^[[0;1m~/.config/retroarch/system^[[0m
^[[0;7;35m > Install^[[0m
Choose systems
Copy from an old card or a folder
Details
Change
Quit
^[[0;2m 1-4 of 7^[[0m
^[[0;1;35mA^[[0m Install ^[[0;2mB^[[0m Back ^[[0;2mY^[[0m Change ^[[0;2m?^[[0m Help
=== plan-in-place
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: RetroArch^[[0m
@@ -125,7 +125,7 @@
^[[0;7;35m > Close^[[0m
Details
Change
More
^[[0;1;35mA^[[0m Close ^[[0;2mB^[[0m Back ^[[0;2mY^[[0m Change ^[[0;2m?^[[0m Help
=== systems
@@ -321,7 +321,7 @@
For the games on this card: yes 412
Only what starts: no
Show the games
^[[0;2m 1-4 of 9^[[0m
^[[0;2m 1-4 of 10^[[0m
^[[0;1;35mA^[[0m Install ^[[0;2mB^[[0m Back ^[[0;2mY^[[0m Change ^[[0;2m?^[[0m Help
=== games
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Games on this card^[[0m
@@ -382,7 +382,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -453,3 +453,42 @@
^[[0;1;35mA^[[0m Choose ^[[0;2mB^[[0m Back ^[[0;2m?^[[0m Help
=== pack-plan
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Make a pack^[[0m
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
^[[0;1mRetroArch_Custom_BIOS_Pack.zip^[[0m
One ZIP, installed with --from-pack.
^[[0;7;35m > Make the pack^[[0m
Change where
^[[0;1;35mA^[[0m Make ^[[0;2mB^[[0m Back ^[[0;2m?^[[0m Help
=== pack-plan-parts
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Make a pack^[[0m
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
^[[0;1mRetroArch_Custom_BIOS_Pack.part1of3.^[[0m
^[[0;1mzip^[[0m
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
^[[0;7;35m > Make the pack^[[0m
Change where
^[[0;1;35mA^[[0m Make ^[[0;2mB^[[0m Back ^[[0;2m?^[[0m Help
=== pack-done
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: ^[[0;1;32mDone^[[0m
^[[0;1m Pack made: ^[[0;1;35m4^[[0;1m files, ^[[0;1;35m1023.4 KB^[[0;1m, in ^[[0;1;35m3^[[0m
^[[0;1m parts.^[[0m
Pack: ~/Downloads/
^[[0;1mRetroArch_Custom_BIOS_Pack.part1of3.^[[0m
^[[0;1mzip^[[0m
On the other device, install from it
with --from-pack.
^[[0;7;35m > Close^[[0m
^[[0;1;35mA^[[0m Close ^[[0;2mB^[[0m Back ^[[0;2m?^[[0m Help
+53 -5
View File
@@ -138,9 +138,9 @@
Copy from an old card or a folder
Details
Change
More
Quit
^[[0;1;35mA^[[0m Install ^[[0;2mB^[[0m Back ^[[0;2mY^[[0m Change ^[[0;2m?^[[0m Help
=== plan-in-place
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: RetroArch^[[0m
@@ -152,7 +152,7 @@
^[[0;7;35m > Close^[[0m
Details
Change
More
@@ -388,6 +388,7 @@
^[[0;1m ^[[0;1;35m4^[[0;1m files to download, ^[[0;1;35m1.0 MB^[[0m
BIOS folder:
^[[0;1m~/.config/retroarch/system^[[0m
^[[0;7;35m > Install^[[0m
For the games on this card: yes 412
Only what starts: no
@@ -395,8 +396,7 @@
Choose systems
Copy from an old card or a folder
Details
Change
Quit
^[[0;2m 1-7 of 10^[[0m
^[[0;1;35mA^[[0m Install ^[[0;2mB^[[0m Back ^[[0;2mY^[[0m Change ^[[0;2m?^[[0m Help
=== games
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Games on this card^[[0m
@@ -469,7 +469,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -558,3 +558,51 @@
^[[0;1;35mA^[[0m Choose ^[[0;2mB^[[0m Back ^[[0;2m?^[[0m Help
=== pack-plan
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Make a pack^[[0m
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
^[[0;1mRetroArch_Custom_BIOS_Pack.zip^[[0m
One ZIP, installed with --from-pack.
^[[0;7;35m > Make the pack^[[0m
Change where
^[[0;1;35mA^[[0m Make ^[[0;2mB^[[0m Back ^[[0;2m?^[[0m Help
=== pack-plan-parts
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Make a pack^[[0m
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
^[[0;1mRetroArch_Custom_BIOS_Pack.part1of3.^[[0m
^[[0;1mzip^[[0m
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
^[[0;7;35m > Make the pack^[[0m
Change where
^[[0;1;35mA^[[0m Make ^[[0;2mB^[[0m Back ^[[0;2m?^[[0m Help
=== pack-done
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: ^[[0;1;32mDone^[[0m
^[[0;1m Pack made: ^[[0;1;35m4^[[0;1m files, ^[[0;1;35m1023.4 KB^[[0;1m, in ^[[0;1;35m3^[[0m
^[[0;1m parts.^[[0m
Pack: ~/Downloads/
^[[0;1mRetroArch_Custom_BIOS_Pack.part1of3.^[[0m
^[[0;1mzip^[[0m
On the other device, install from it
with --from-pack.
^[[0;7;35m > Close^[[0m
^[[0;1;35mA^[[0m Close ^[[0;2mB^[[0m Back ^[[0;2m?^[[0m Help
+79 -4
View File
@@ -209,6 +209,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -221,7 +222,6 @@
^[[0;1;35mA/Enter^[[0m Install ^[[0;2mB/Esc^[[0m Back ^[[0;2mY/o^[[0m Change ^[[0;2m?^[[0m Help
=== plan-in-place
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: RetroArch^[[0m
@@ -232,7 +232,7 @@
^[[0;7;35m > Close^[[0m
Details
Change
More
@@ -613,6 +613,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -621,7 +622,6 @@
^[[0;1;35mA/Enter^[[0m Install ^[[0;2mB/Esc^[[0m Back ^[[0;2mY/o^[[0m Change ^[[0;2m?^[[0m Help
=== games
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Games on this card^[[0m
@@ -730,7 +730,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -873,3 +873,78 @@
^[[0;1;35mA/Enter^[[0m Choose ^[[0;2mB/Esc^[[0m Back ^[[0;2m?^[[0m Help
=== pack-plan
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Make a pack^[[0m
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
^[[0;7;35m > Make the pack^[[0m
Change where
^[[0;1;35mA/Enter^[[0m Make ^[[0;2mB/Esc^[[0m Back ^[[0;2m?^[[0m Help
=== pack-plan-parts
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: Make a pack^[[0m
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
In 3 parts of at most 3.9 GB, as FAT32 holds no file of 4 GB.
^[[0;7;35m > Make the pack^[[0m
Change where
^[[0;1;35mA/Enter^[[0m Make ^[[0;2mB/Esc^[[0m Back ^[[0;2m?^[[0m Help
=== pack-done
^[[0;1m ^[[0;1;35mRetroBIOS^[[0;1m: ^[[0;1;32mDone^[[0m
^[[0;1m Pack made: ^[[0;1;35m4^[[0;1m files, ^[[0;1;35m1023.4 KB^[[0;1m, in ^[[0;1;35m3^[[0;1m parts.^[[0m
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
On the other device, install from it with --from-pack.
^[[0;7;35m > Close^[[0m
^[[0;1;35mA/Enter^[[0m Close ^[[0;2mB/Esc^[[0m Back ^[[0;2m?^[[0m Help
+1 -1
View File
@@ -4,7 +4,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
+1 -1
View File
@@ -4,7 +4,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
+1 -1
View File
@@ -4,7 +4,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
+1 -1
View File
@@ -4,7 +4,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
+40
View File
@@ -0,0 +1,40 @@
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3 parts.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
On the other device, install from it with --from-pack.
> Close
A/Enter Close B/Esc Back ? Help
+12
View File
@@ -0,0 +1,12 @@
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
A Close B Back ? Help
+15
View File
@@ -0,0 +1,15 @@
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
A Close B Back ? Help
+24
View File
@@ -0,0 +1,24 @@
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3 parts.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
On the other device, install from it with --from-pack.
> Close
A/Enter Close B/Esc Back ? Help
+40
View File
@@ -0,0 +1,40 @@
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A/Enter Make B/Esc Back ? Help
+12
View File
@@ -0,0 +1,12 @@
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make B Back ? Help
+15
View File
@@ -0,0 +1,15 @@
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make B Back ? Help
+24
View File
@@ -0,0 +1,24 @@
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A/Enter Make B/Esc Back ? Help
+40
View File
@@ -0,0 +1,40 @@
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
In 3 parts of at most 3.9 GB, as FAT32 holds no file of 4 GB.
> Make the pack
Change where
A/Enter Make B/Esc Back ? Help
+12
View File
@@ -0,0 +1,12 @@
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
A Make B Back ? Help
+15
View File
@@ -0,0 +1,15 @@
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
A Make B Back ? Help
+24
View File
@@ -0,0 +1,24 @@
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
In 3 parts of at most 3.9 GB, as FAT32 holds no file of 4 GB.
> Make the pack
Change where
A/Enter Make B/Esc Back ? Help
+1 -1
View File
@@ -8,6 +8,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -34,7 +35,6 @@
A/Enter Install B/Esc Back Y/o Change ? Help
+2 -2
View File
@@ -3,10 +3,10 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-4 of 7
A Install B Back Y Change ? Help
+1 -1
View File
@@ -9,7 +9,7 @@
Copy from an old card or a folder
Details
Change
More
Quit
A Install B Back Y Change ? Help
+1 -1
View File
@@ -8,6 +8,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -20,5 +21,4 @@
A/Enter Install B/Esc Back Y/o Change ? Help
+1 -1
View File
@@ -12,6 +12,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -34,7 +35,6 @@
A/Enter Install B/Esc Back Y/o Change ? Help
+1 -1
View File
@@ -8,5 +8,5 @@
For the games on this card: yes 412
Only what starts: no
Show the games
1-4 of 9
1-4 of 10
A Install B Back Y Change ? Help
+2 -2
View File
@@ -3,6 +3,7 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
For the games on this card: yes 412
Only what starts: no
@@ -10,6 +11,5 @@
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-7 of 10
A Install B Back Y Change ? Help
+1 -1
View File
@@ -12,6 +12,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -20,5 +21,4 @@
A/Enter Install B/Esc Back Y/o Change ? Help
+1 -1
View File
@@ -6,7 +6,7 @@
> Close
Details
Change
More
+1 -1
View File
@@ -7,6 +7,6 @@
> Close
Details
Change
More
A Close B Back Y Change ? Help
+1 -1
View File
@@ -7,7 +7,7 @@
> Close
Details
Change
More
+1 -1
View File
@@ -6,7 +6,7 @@
> Close
Details
Change
More
+176 -14
View File
@@ -407,12 +407,12 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-4 of 7
A Install B Back Y Change
=== plan 40x15
RetroBIOS: RetroArch
@@ -426,9 +426,9 @@
Copy from an old card or a folder
Details
Change
More
Quit
A Install B Back Y Change
=== plan 80x24
RetroBIOS: RetroArch
@@ -441,6 +441,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -453,7 +454,6 @@
A Install B Back Y Change
=== plan-in-place 40x12
RetroBIOS: RetroArch
@@ -465,7 +465,7 @@
> Close
Details
Change
More
A Close B Back Y Change
=== plan-in-place 40x15
@@ -478,7 +478,7 @@
> Close
Details
Change
More
@@ -493,7 +493,7 @@
> Close
Details
Change
More
@@ -1144,7 +1144,7 @@
For the games on this card: yes 412
Only what starts: no
Show the games
1-4 of 9
1-4 of 10
A Install B Back Y Change
=== plan-games 40x15
RetroBIOS: RetroArch
@@ -1152,6 +1152,7 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
For the games on this card: yes 412
Only what starts: no
@@ -1159,8 +1160,7 @@
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-7 of 10
A Install B Back Y Change
=== plan-games 80x24
RetroBIOS: RetroArch
@@ -1177,6 +1177,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -1185,7 +1186,6 @@
A Install B Back Y Change
=== games 80x24
RetroBIOS: Games on this card
@@ -1352,7 +1352,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1365,7 +1365,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1381,7 +1381,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1669,3 +1669,165 @@
A Choose B Back
=== pack-plan 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make B Back
=== pack-plan 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make B Back
=== pack-plan 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make B Back
=== pack-plan-parts 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
A Make B Back
=== pack-plan-parts 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
A Make B Back
=== pack-plan-parts 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
In 3 parts of at most 3.9 GB, as FAT32 holds no file of 4 GB.
> Make the pack
Change where
A Make B Back
=== pack-done 40x12
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
A Close B Back
=== pack-done 40x15
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
A Close B Back
=== pack-done 80x24
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3 parts.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
On the other device, install from it with --from-pack.
> Close
A Close B Back
+176 -14
View File
@@ -407,12 +407,12 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-4 of 7
A Install B Back Y Change
=== plan 40x15
RetroBIOS: RetroArch
@@ -426,9 +426,9 @@
Copy from an old card or a folder
Details
Change
More
Quit
A Install B Back Y Change
=== plan 80x24
RetroBIOS: RetroArch
@@ -441,6 +441,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -453,7 +454,6 @@
A Install B Back Y Change
=== plan-in-place 40x12
RetroBIOS: RetroArch
@@ -465,7 +465,7 @@
> Close
Details
Change
More
A Close B Back Y Change
=== plan-in-place 40x15
@@ -478,7 +478,7 @@
> Close
Details
Change
More
@@ -493,7 +493,7 @@
> Close
Details
Change
More
@@ -1144,7 +1144,7 @@
For the games on this card: yes 412
Only what starts: no
Show the games
1-4 of 9
1-4 of 10
A Install B Back Y Change
=== plan-games 40x15
RetroBIOS: RetroArch
@@ -1152,6 +1152,7 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
For the games on this card: yes 412
Only what starts: no
@@ -1159,8 +1160,7 @@
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-7 of 10
A Install B Back Y Change
=== plan-games 80x24
RetroBIOS: RetroArch
@@ -1177,6 +1177,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -1185,7 +1186,6 @@
A Install B Back Y Change
=== games 80x24
RetroBIOS: Games on this card
@@ -1352,7 +1352,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1365,7 +1365,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1381,7 +1381,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1669,3 +1669,165 @@
A Choose B Back
=== pack-plan 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make B Back
=== pack-plan 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make B Back
=== pack-plan 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make B Back
=== pack-plan-parts 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
A Make B Back
=== pack-plan-parts 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
A Make B Back
=== pack-plan-parts 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
In 3 parts of at most 3.9 GB, as FAT32 holds no file of 4 GB.
> Make the pack
Change where
A Make B Back
=== pack-done 40x12
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
A Close B Back
=== pack-done 40x15
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
A Close B Back
=== pack-done 80x24
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3 parts.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
On the other device, install from it with --from-pack.
> Close
A Close B Back
+176 -14
View File
@@ -407,12 +407,12 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-4 of 7
A Install B Back Y Change
=== plan 40x15
RetroBIOS: RetroArch
@@ -426,9 +426,9 @@
Copy from an old card or a folder
Details
Change
More
Quit
A Install B Back Y Change
=== plan 80x24
RetroBIOS: RetroArch
@@ -441,6 +441,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -453,7 +454,6 @@
A Install B Back Y Change
=== plan-in-place 40x12
RetroBIOS: RetroArch
@@ -465,7 +465,7 @@
> Close
Details
Change
More
A Close B Back Y Change
=== plan-in-place 40x15
@@ -478,7 +478,7 @@
> Close
Details
Change
More
@@ -493,7 +493,7 @@
> Close
Details
Change
More
@@ -1144,7 +1144,7 @@
For the games on this card: yes 412
Only what starts: no
Show the games
1-4 of 9
1-4 of 10
A Install B Back Y Change
=== plan-games 40x15
RetroBIOS: RetroArch
@@ -1152,6 +1152,7 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
For the games on this card: yes 412
Only what starts: no
@@ -1159,8 +1160,7 @@
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-7 of 10
A Install B Back Y Change
=== plan-games 80x24
RetroBIOS: RetroArch
@@ -1177,6 +1177,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -1185,7 +1186,6 @@
A Install B Back Y Change
=== games 80x24
RetroBIOS: Games on this card
@@ -1352,7 +1352,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1365,7 +1365,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1381,7 +1381,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1669,3 +1669,165 @@
A Choose B Back
=== pack-plan 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make B Back
=== pack-plan 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make B Back
=== pack-plan 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make B Back
=== pack-plan-parts 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
A Make B Back
=== pack-plan-parts 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
A Make B Back
=== pack-plan-parts 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
In 3 parts of at most 3.9 GB, as FAT32 holds no file of 4 GB.
> Make the pack
Change where
A Make B Back
=== pack-done 40x12
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
A Close B Back
=== pack-done 40x15
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
A Close B Back
=== pack-done 80x24
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3 parts.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
On the other device, install from it with --from-pack.
> Close
A Close B Back
+176 -14
View File
@@ -382,12 +382,12 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-4 of 7
Enter Install Esc Back o Change
=== plan 40x15
RetroBIOS: RetroArch
@@ -401,9 +401,9 @@
Copy from an old card or a folder
Details
Change
More
Quit
Enter Install Esc Back o Change
=== plan 80x24
RetroBIOS: RetroArch
@@ -416,6 +416,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -428,7 +429,6 @@
Enter Install Esc Back o Change ? Help
=== plan-in-place 40x12
RetroBIOS: RetroArch
@@ -440,7 +440,7 @@
> Close
Details
Change
More
Enter Close Esc Back o Change
=== plan-in-place 40x15
@@ -453,7 +453,7 @@
> Close
Details
Change
More
@@ -468,7 +468,7 @@
> Close
Details
Change
More
@@ -1251,7 +1251,7 @@
For the games on this card: yes 412
Only what starts: no
Show the games
1-4 of 9
1-4 of 10
Enter Install Esc Back o Change
=== plan-games 40x15
RetroBIOS: RetroArch
@@ -1259,6 +1259,7 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
For the games on this card: yes 412
Only what starts: no
@@ -1266,8 +1267,7 @@
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-7 of 10
Enter Install Esc Back o Change
=== plan-games 80x24
RetroBIOS: RetroArch
@@ -1284,6 +1284,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -1292,7 +1293,6 @@
Enter Install Esc Back o Change ? Help
=== games 40x12
RetroBIOS: Games on this card
@@ -1517,7 +1517,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1530,7 +1530,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1546,7 +1546,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1834,3 +1834,165 @@
Enter Choose Esc Back ? Help
=== pack-plan 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
Enter Make Esc Back ? Help
=== pack-plan 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
Enter Make Esc Back ? Help
=== pack-plan 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
Enter Make Esc Back ? Help
=== pack-plan-parts 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
Enter Make Esc Back ? Help
=== pack-plan-parts 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
Enter Make Esc Back ? Help
=== pack-plan-parts 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
In 3 parts of at most 3.9 GB, as FAT32 holds no file of 4 GB.
> Make the pack
Change where
Enter Make Esc Back ? Help
=== pack-done 40x12
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
Enter Close Esc Back ? Help
=== pack-done 40x15
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
Enter Close Esc Back ? Help
=== pack-done 80x24
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3 parts.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
On the other device, install from it with --from-pack.
> Close
Enter Close Esc Back ? Help
+176 -14
View File
@@ -436,12 +436,12 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-4 of 7
A Install R2 Back L2 Change
=== plan 40x15
RetroBIOS: RetroArch
@@ -455,9 +455,9 @@
Copy from an old card or a folder
Details
Change
More
Quit
A Install R2 Back L2 Change
=== plan 80x24
RetroBIOS: RetroArch
@@ -470,6 +470,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -482,7 +483,6 @@
A Install R2 Back L2 Change
=== plan-in-place 40x12
RetroBIOS: RetroArch
@@ -494,7 +494,7 @@
> Close
Details
Change
More
A Close R2 Back L2 Change
=== plan-in-place 40x15
@@ -507,7 +507,7 @@
> Close
Details
Change
More
@@ -522,7 +522,7 @@
> Close
Details
Change
More
@@ -1247,7 +1247,7 @@
For the games on this card: yes 412
Only what starts: no
Show the games
1-4 of 9
1-4 of 10
A Install R2 Back L2 Change
=== plan-games 40x15
RetroBIOS: RetroArch
@@ -1255,6 +1255,7 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
For the games on this card: yes 412
Only what starts: no
@@ -1262,8 +1263,7 @@
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-7 of 10
A Install R2 Back L2 Change
=== plan-games 80x24
RetroBIOS: RetroArch
@@ -1280,6 +1280,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -1288,7 +1289,6 @@
A Install R2 Back L2 Change
=== games 80x24
RetroBIOS: Games on this card
@@ -1455,7 +1455,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1468,7 +1468,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1484,7 +1484,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1772,3 +1772,165 @@
A Choose R2 Back
=== pack-plan 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make R2 Back
=== pack-plan 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make R2 Back
=== pack-plan 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
A Make R2 Back
=== pack-plan-parts 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
A Make R2 Back
=== pack-plan-parts 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
A Make R2 Back
=== pack-plan-parts 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
In 3 parts of at most 3.9 GB, as FAT32 holds no file of 4 GB.
> Make the pack
Change where
A Make R2 Back
=== pack-done 40x12
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
A Close R2 Back
=== pack-done 40x15
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
A Close R2 Back
=== pack-done 80x24
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3 parts.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
On the other device, install from it with --from-pack.
> Close
A Close R2 Back
+176 -14
View File
@@ -436,12 +436,12 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-4 of 7
Start Install B Back
=== plan 40x15
RetroBIOS: RetroArch
@@ -455,9 +455,9 @@
Copy from an old card or a folder
Details
Change
More
Quit
Start Install B Back
=== plan 80x24
RetroBIOS: RetroArch
@@ -470,6 +470,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -482,7 +483,6 @@
Start Install B Back
=== plan-in-place 40x12
RetroBIOS: RetroArch
@@ -494,7 +494,7 @@
> Close
Details
Change
More
Start Close B Back
=== plan-in-place 40x15
@@ -507,7 +507,7 @@
> Close
Details
Change
More
@@ -522,7 +522,7 @@
> Close
Details
Change
More
@@ -1305,7 +1305,7 @@
For the games on this card: yes 412
Only what starts: no
Show the games
1-4 of 9
1-4 of 10
Start Install B Back
=== plan-games 40x15
RetroBIOS: RetroArch
@@ -1313,6 +1313,7 @@
4 files to download, 1.0 MB
BIOS folder:
~/.config/retroarch/system
> Install
For the games on this card: yes 412
Only what starts: no
@@ -1320,8 +1321,7 @@
Choose systems
Copy from an old card or a folder
Details
Change
Quit
1-7 of 10
Start Install B Back
=== plan-games 80x24
RetroBIOS: RetroArch
@@ -1338,6 +1338,7 @@
Copy the BIOS files from an old card or a folder
Details
Change
More
Quit
@@ -1346,7 +1347,6 @@
Start Install B Back
=== games 40x12
RetroBIOS: Games on this card
@@ -1571,7 +1571,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1584,7 +1584,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1600,7 +1600,7 @@
Backups
Put back a backup
Delete a backup
Make a pack
@@ -1888,3 +1888,165 @@
Start Choose B Back
=== pack-plan 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
Start Make B Back
=== pack-plan 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
Start Make B Back
=== pack-plan 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.zip
One ZIP, installed with --from-pack.
> Make the pack
Change where
Start Make B Back
=== pack-plan-parts 40x12
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
Start Make B Back
=== pack-plan-parts 40x15
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
In 3 parts of at most 3.9 GB, as FAT32
holds no file of 4 GB.
> Make the pack
Change where
Start Make B Back
=== pack-plan-parts 80x24
RetroBIOS: Make a pack
4 files, 1.0 MB, for RetroArch.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
In 3 parts of at most 3.9 GB, as FAT32 holds no file of 4 GB.
> Make the pack
Change where
Start Make B Back
=== pack-done 40x12
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
Start Close B Back
=== pack-done 40x15
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3
parts.
Pack: ~/Downloads/
RetroArch_Custom_BIOS_Pack.part1of3.
zip
On the other device, install from it
with --from-pack.
> Close
Start Close B Back
=== pack-done 80x24
RetroBIOS: Done
Pack made: 4 files, 1023.4 KB, in 3 parts.
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.part1of3.zip
On the other device, install from it with --from-pack.
> Close
Start Close B Back
+7 -5
View File
@@ -61,21 +61,23 @@ JOURNEY_KEYS = {
# word: its length is the machine's. A change that adds words raises a
# number here and says why.
JOURNEY_WORDS = {
"first_install": 47,
"card_with_games": 87,
# Every plan names More (one word, Make a pack being always there): one
# word per plan a journey stops on.
"first_install": 48,
"card_with_games": 88,
# A plan whose folder has a record names More (one word): an update
# and a second run of one system.
"update": 71,
"one_system": 179,
"one_system": 181,
"one_system_again": 68,
# Change holds every option one level down now (design 4.4): its
# headings and the rows for Emulators, a pack, the device and the
# internet, the intro sentence dropped, 10 words on each of its two
# frames.
"what_is_missing": 227,
"what_is_missing": 228,
# The plan of the setup found comes first now (33 words), the setups
# one Esc away, and the last plan names Change where (2 words).
"another_device": 265,
"another_device": 267,
}
# Which setup? names every setup, Preview every file: lists, not prose.
SCREEN_CEILING = 90
+640
View File
@@ -0,0 +1,640 @@
"""--pack: the choice downloaded into a pack ZIP for another device.
The pack is read back by --from-pack, offline, and must install exactly
what a direct install of the same choice installs. Parts are each a whole
ZIP. Every member is checked against its SHA-1 before the ZIP is closed,
and a failure leaves no file behind.
"""
from __future__ import annotations
import tests # noqa: F401 offline, scratch under tmp/, the suite's own cache
import functools
import hashlib
import http.server
import importlib.util
import io
import json
import os
import shutil
import socket
import subprocess
import sys
import tempfile
import threading
import unittest
import zipfile
import zlib
from pathlib import Path
from unittest import mock
REPO_ROOT = Path(__file__).resolve().parent.parent
_spec = importlib.util.spec_from_file_location("install", REPO_ROOT / "install.py")
install = importlib.util.module_from_spec(_spec)
_spec.loader.exec_module(install)
def _sha1(data: bytes) -> str:
return hashlib.sha1(data).hexdigest()
def _noise(seed: str, size: int) -> bytes:
"""Bytes deflate cannot shrink."""
return b"".join(hashlib.sha256(f"{seed}{n}".encode()).digest()
for n in range(size // 32))
# dest: (bytes, systems, regions, cores). Two dests share one file: the
# pack stores it once.
PAYLOADS = {
"scph5500.bin": (b"jp bios " * 64, ["sony-playstation"], ["japan"], None),
"scph5501.bin": (b"us bios " * 64, ["sony-playstation"], ["north-america"], None),
"gba_bios.bin": (b"gba bios" * 32, ["nintendo-gba"], None, None),
"pcsx/extra.bin": (b"pcsx extra", ["sony-playstation"], None, ["pcsx_rearmed"]),
"mgba/gba_bios.bin": (b"gba bios" * 32, ["nintendo-gba"], None, ["mgba"]),
}
TREE = {"Sys/GC/font.bin": b"font bytes", "Sys/Wii/setting.txt": b"setting"}
# Files too large for one part of MIN_PART_BYTES together.
BIG = {f"arcade/set{n}.zip": (_noise(str(n), 24 * 1024), ["arcade"], None, None)
for n in range(5)}
class _Quiet(http.server.SimpleHTTPRequestHandler):
def log_message(self, format, *args): # noqa: A002 - stdlib signature
return
def _closed_port() -> int:
with socket.socket() as sock:
sock.bind(("127.0.0.1", 0))
return sock.getsockname()[1]
class Repository(unittest.TestCase):
"""A loopback copy of the repository: a RetroArch list, its files and a
data tree's archive."""
payloads = PAYLOADS
tree = TREE
def setUp(self):
scratch = REPO_ROOT / "tmp"
scratch.mkdir(exist_ok=True)
self.root = Path(tempfile.mkdtemp(dir=scratch))
self.addCleanup(shutil.rmtree, self.root, True)
self.served = self.root / "served"
(self.served / "install").mkdir(parents=True)
(self.served / "bios").mkdir()
handler = functools.partial(_Quiet, directory=str(self.served))
self.httpd = http.server.ThreadingHTTPServer(("127.0.0.1", 0), handler)
threading.Thread(target=self.httpd.serve_forever, daemon=True).start()
self.addCleanup(self.httpd.server_close)
self.addCleanup(self.httpd.shutdown)
self.base = f"http://127.0.0.1:{self.httpd.server_address[1]}"
self.out = self.root / "out"
self.out.mkdir()
self.write_list()
def write_list(self) -> None:
files = []
for dest, (payload, systems, regions, cores) in self.payloads.items():
stored = dest.replace("/", "_")
(self.served / "bios" / stored).write_bytes(payload)
entry = {"dest": dest, "sha1": _sha1(payload), "size": len(payload),
"repo_path": f"bios/{stored}", "cores": cores, "systems": systems}
if regions:
entry.update(regions=regions, region_system_groups=systems)
files.append(entry)
listed: dict = {"manifest_version": 2, "platform": "retroarch", "files": files,
"system_cores": {"sony-playstation": ["pcsx_rearmed"],
"nintendo-gba": ["mgba"], "arcade": ["fbneo"]}}
if self.tree:
with zipfile.ZipFile(self.served / "tree.zip", "w") as archive:
for rel, data in self.tree.items():
archive.writestr(rel, data)
listed["data_directories"] = [{
"ref": "dolphin-sys", "dest": "dolphin-emu", "type": "zip",
"url": f"{self.base}/tree.zip", "systems": ["nintendo-gba"],
"files": {rel: {"sha1": _sha1(data), "size": len(data)}
for rel, data in self.tree.items()}}]
(self.served / "install" / "retroarch.json").write_text(json.dumps(listed))
def env(self, offline: bool = False) -> dict:
env = dict(os.environ)
env.pop(install.OFFLINE_VARIABLE, None)
env["RETROBIOS_BASE_URL"] = self.base
if offline:
env["RETROBIOS_BASE_URL"] = f"http://127.0.0.1:{_closed_port()}"
env["HTTPS_PROXY"] = env["HTTP_PROXY"] = f"http://127.0.0.1:{_closed_port()}"
env[install.OFFLINE_VARIABLE] = "1"
return env
def run_installer(self, *options: str, offline: bool = False,
code: str | None = None) -> subprocess.CompletedProcess:
start = ([sys.executable, "-c", code] if code is not None
else [sys.executable, str(REPO_ROOT / "install.py")])
return subprocess.run(
[*start, "--platform", "retroarch", *options], env=self.env(offline),
capture_output=True, text=True, timeout=120, check=False,
stdin=subprocess.DEVNULL, cwd=str(self.root))
def make(self, *options: str, into: Path | None = None) -> subprocess.CompletedProcess:
proc = self.run_installer("--pack", f"{into or self.out}{os.sep}", *options)
return proc
def installed(self, folder: Path) -> set[tuple[str, str]]:
"""(path, sha1) of every file below folder, the record and backups
the installer keeps beside its files left out."""
return {(path.relative_to(folder).as_posix(), _sha1(path.read_bytes()))
for path in folder.rglob("*")
if path.is_file() and not any("retrobios" in part.lower()
for part in path.relative_to(folder).parts)}
def direct(self, folder: Path, *options: str) -> set[tuple[str, str]]:
proc = self.run_installer("--dest", str(folder), "--yes", *options)
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
return self.installed(folder)
def from_pack(self, pack: Path, folder: Path, *options: str) -> set[tuple[str, str]]:
proc = self.run_installer("--dest", str(folder), "--from-pack", str(pack), "--yes",
*options, offline=True)
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
return self.installed(folder)
def packs(self, folder: Path | None = None) -> list[Path]:
return sorted((folder or self.out).iterdir())
class APackInstallsWhatADirectInstallDoes(Repository):
def test_the_whole_list(self):
expected = self.direct(self.root / "direct")
self.assertIn(("dolphin-emu/Sys/GC/font.bin", _sha1(TREE["Sys/GC/font.bin"])),
expected)
proc = self.make()
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
self.assertEqual([path.name for path in self.packs()], ["RetroArch_BIOS_Pack.zip"])
self.assertIn("Pack made: 6 files", proc.stdout)
self.assertEqual(self.from_pack(self.packs()[0], self.root / "other"), expected)
def test_a_narrowed_choice(self):
options = ("--system", "sony-playstation", "--region", "us")
expected = self.direct(self.root / "direct", *options)
self.assertNotIn("gba_bios.bin", {path for path, _sha1 in expected})
proc = self.make(*options)
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
pack = self.out / "RetroArch_Custom_BIOS_Pack.zip"
self.assertEqual(self.packs(), [pack])
# The pack carries the choice: no option is needed on the other
# device, and the same options give the same files.
self.assertEqual(self.from_pack(pack, self.root / "plain"), expected)
self.assertEqual(self.from_pack(pack, self.root / "again", *options), expected)
def test_a_file_two_dests_share_is_stored_once(self):
self.assertEqual(self.make().returncode, 0)
with zipfile.ZipFile(self.packs()[0]) as archive:
names = archive.namelist()
listed = json.loads(archive.read("manifest.json"))
self.assertEqual(names[0], "manifest.json")
self.assertIn("gba_bios.bin", names)
self.assertNotIn("mgba/gba_bios.bin", names)
self.assertEqual(listed["platform"], "retroarch")
self.assertEqual(sorted(entry["dest"] for entry in listed["install_list"]["files"]),
sorted(PAYLOADS))
self.assertEqual([entry["ref"] for entry in
listed["install_list"]["data_directories"]], ["dolphin-sys"])
def test_a_pack_made_from_a_pack(self):
"""No network is needed to make a pack of part of a pack."""
self.assertEqual(self.make().returncode, 0)
whole = self.packs()[0]
smaller = self.root / "smaller"
smaller.mkdir()
proc = self.run_installer("--from-pack", str(whole), "--pack", f"{smaller}{os.sep}",
"--system", "nintendo-gba", offline=True)
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
expected = self.direct(self.root / "direct", "--system", "nintendo-gba")
self.assertEqual(self.from_pack(self.packs(smaller)[0], self.root / "other"),
expected)
def test_a_dry_run_lists_and_writes_nothing(self):
proc = self.make("--dry-run", "--verbose")
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
self.assertIn("Pack for RetroArch: 6 files", proc.stdout)
self.assertIn("dolphin-emu/Sys/GC/font.bin", proc.stdout)
self.assertEqual(self.packs(), [])
class APackIsDeterministic(Repository):
def test_the_same_choice_gives_the_same_bytes(self):
again = self.root / "again"
again.mkdir()
self.assertEqual(self.make().returncode, 0)
self.assertEqual(self.make(into=again).returncode, 0)
first, second = self.packs()[0], self.packs(again)[0]
self.assertEqual(first.read_bytes(), second.read_bytes())
with zipfile.ZipFile(first) as archive:
infos = archive.infolist()
self.assertEqual({info.date_time for info in infos}, {(1980, 1, 1, 0, 0, 0)})
self.assertEqual({info.external_attr for info in infos}, {0o100644 << 16})
names = [info.filename for info in infos]
self.assertEqual(names[1:], sorted(names[1:]))
class Parts(Repository):
payloads = {**PAYLOADS, **BIG}
def test_each_part_is_a_whole_zip_and_their_union_is_the_pack(self):
whole_dir = self.root / "whole"
whole_dir.mkdir()
self.assertEqual(self.make(into=whole_dir).returncode, 0)
with zipfile.ZipFile(self.packs(whole_dir)[0]) as archive:
whole = {info.filename: archive.read(info) for info in archive.infolist()}
proc = self.make("--split", "64K")
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
parts = self.packs()
self.assertGreater(len(parts), 1)
count = len(parts)
self.assertEqual([part.name for part in parts],
[f"RetroArch_BIOS_Pack.part{n}of{count}.zip"
for n in range(1, count + 1)])
self.assertIn(f"In {count} parts of at most 64.0 KB.", proc.stdout)
union: dict[str, bytes] = {}
markers = self.root / "markers"
markers.mkdir()
for index, part in enumerate(parts, 1):
self.assertLess(part.stat().st_size, 64 * 1024)
with zipfile.ZipFile(part) as archive:
self.assertIsNone(archive.testzip())
for info in archive.infolist():
data = archive.read(info)
if install._PART_MARKER.match(info.filename):
(markers / info.filename).write_bytes(data)
continue
self.assertNotIn(info.filename, union)
union[info.filename] = data
marker = install.read_part_marker(
markers / f"RetroArch_BIOS_Pack.part{index}of{count}.txt")
self.assertIsNotNone(marker)
self.assertEqual(marker.parts, tuple((p.name, p.stat().st_size) for p in parts))
self.assertEqual(union, whole)
expected = self.direct(self.root / "direct")
self.assertEqual(self.from_pack(parts[1], self.root / "other"), expected)
def test_a_pack_under_the_size_stays_one_zip(self):
proc = self.make("--split", "100M")
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
self.assertEqual([path.name for path in self.packs()], ["RetroArch_BIOS_Pack.zip"])
def test_a_pack_made_again_in_parts_replaces_the_whole_one(self):
self.assertEqual(self.make().returncode, 0)
self.assertEqual(self.make("--split", "64K").returncode, 0)
self.assertTrue(all(".part" in path.name for path in self.packs()))
def test_a_file_larger_than_a_part_is_refused_before_any_download(self):
self.payloads = {"big.bin": (_noise("x", 80 * 1024), ["arcade"], None, None)}
self.write_list()
proc = self.make("--split", "64K")
self.assertEqual(proc.returncode, 2, proc.stdout + proc.stderr)
self.assertIn("big.bin (80.0 KB) does not fit in a part of 64.0 KB", proc.stderr)
self.assertEqual(self.packs(), [])
# The installer run in a child with FAT32 said of every drive and its
# limit made small: a real 4 GiB pack is out of reach of a test.
FAT_CHILD = """
import importlib.util, sys
spec = importlib.util.spec_from_file_location("install", {script!r})
install = importlib.util.module_from_spec(spec)
spec.loader.exec_module(install)
install.fat32_drive = lambda folder: {fat}
install.FAT_FILE_LIMIT = 100 * 1024
install.FAT_PART_BYTES = 80 * 1024
sys.argv = ["install.py", *sys.argv[1:]]
install.main()
"""
class Fat32(Repository):
payloads = {**PAYLOADS, **BIG}
def child(self, fat: bool) -> str:
return FAT_CHILD.format(script=str(REPO_ROOT / "install.py"), fat=fat)
def test_a_pack_past_the_limit_is_split_by_itself(self):
proc = self.run_installer("--pack", f"{self.out}{os.sep}", code=self.child(True))
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
parts = self.packs()
self.assertEqual(len(parts), 2)
self.assertIn("In 2 parts of at most 80.0 KB, as FAT32 holds no file of 4 GB.",
proc.stdout)
self.assertTrue(all(part.stat().st_size < 80 * 1024 for part in parts))
def test_another_drive_keeps_one_zip(self):
proc = self.run_installer("--pack", f"{self.out}{os.sep}", code=self.child(False))
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
self.assertEqual([path.name for path in self.packs()], ["RetroArch_BIOS_Pack.zip"])
self.assertNotIn("FAT32", proc.stdout)
def test_the_mount_table_names_the_drive(self):
table = ("22 1 8:1 / / rw - ext4 /dev/sda1 rw\n"
"36 22 179:1 / /media/me/SD\\040CARD rw,nosuid - vfat /dev/mmcblk0p1 rw\n"
"37 36 179:2 / /media/me/SD\\040CARD/inner rw - exfat /dev/mmcblk0p2 rw\n")
mounts = install.mountinfo_types(table)
self.assertEqual(mounts[1], ("/media/me/SD CARD", "vfat"))
self.assertTrue(install.fat_mounted(Path("/media/me/SD CARD/packs"), mounts))
self.assertFalse(install.fat_mounted(Path("/media/me/SD CARD/inner/x"), mounts))
self.assertFalse(install.fat_mounted(Path("/home/me"), mounts))
listing = "/dev/disk4s1 on /Volumes/CARD (msdos, local, nodev, nosuid)\n"
self.assertTrue(install.fat_mounted(Path("/Volumes/CARD/x"),
install.mount_list_types(listing)))
class AFailureLeavesNothing(Repository):
def test_a_download_that_fails_leaves_no_file(self):
(self.served / "bios" / "scph5501.bin").write_bytes(b"changed on the server")
proc = self.make()
self.assertEqual(proc.returncode, 1, proc.stdout + proc.stderr)
self.assertIn("could not be had: no pack was written", proc.stderr)
self.assertEqual(self.packs(), [])
def test_an_earlier_pack_of_the_name_stays_as_it_was(self):
self.assertEqual(self.make().returncode, 0)
before = self.packs()[0].read_bytes()
(self.served / "bios" / "gba_bios.bin").unlink()
proc = self.make()
self.assertEqual(proc.returncode, 1, proc.stdout + proc.stderr)
self.assertEqual([path.name for path in self.packs()], ["RetroArch_BIOS_Pack.zip"])
self.assertEqual(self.packs()[0].read_bytes(), before)
def test_a_member_whose_bytes_changed_is_refused_before_the_zip_closes(self):
source = self.root / "staged.bin"
source.write_bytes(b"other bytes")
member = install.PackMember("a.bin", _sha1(b"listed bytes"), 11, source)
with self.assertRaises(install.PackError):
install.write_pack(self.out / "RetroArch_BIOS_Pack.zip", b"{}", [member], None)
self.assertEqual(self.packs(), [])
class Events(Repository):
def events(self, *options: str) -> tuple[list[dict], int]:
proc = self.make("--events", *options)
return [json.loads(line) for line in proc.stdout.splitlines()], proc.returncode
def test_the_pack_event(self):
events, code = self.events("--dry-run")
self.assertEqual(code, 0)
self.assertEqual(events[0]["mode"], "pack")
pack = next(event for event in events if event["event"] == "pack")
self.assertEqual(list(pack)[1:], list(install.EVENT_KEYS["pack"]))
self.assertEqual(pack["status"], "planned")
self.assertEqual(pack["files"], 6)
self.assertEqual(pack["size"], 0)
self.assertEqual(self.packs(), [])
events, code = self.events()
self.assertEqual(code, 0)
pack = next(event for event in events if event["event"] == "pack")
self.assertEqual(pack["status"], "written")
self.assertEqual(pack["parts"], [str(self.out / "RetroArch_BIOS_Pack.zip")])
self.assertEqual(pack["size"], self.packs()[0].stat().st_size)
self.assertEqual(events[-1], {"event": "end", "code": 0})
def test_a_failure_is_an_event(self):
(self.served / "bios" / "scph5500.bin").unlink()
events, code = self.events()
self.assertEqual(code, 1)
pack = next(event for event in events if event["event"] == "pack")
self.assertEqual((pack["status"], pack["parts"]), ("failed", []))
self.assertEqual(events[-1], {"event": "end", "code": 1})
class Refusals(Repository):
def test_options_of_this_machine_s_folder_are_refused(self):
for options in (("--check",), ("--dest", str(self.root / "x")),
("--installed-cores",), ("--for-games",), ("--list-systems",)):
with self.subTest(options=options):
proc = self.make(*options)
self.assertEqual(proc.returncode, 2, proc.stderr)
self.assertIn("install.py: error:", proc.stderr)
def test_split_needs_pack_and_a_size(self):
proc = self.run_installer("--split", "1G")
self.assertEqual(proc.returncode, 2)
self.assertIn("--split applies to --pack", proc.stderr)
proc = self.make("--split", "1K")
self.assertEqual(proc.returncode, 2)
self.assertIn("too small", proc.stderr)
def test_a_name_the_reader_would_not_find_is_refused(self):
proc = self.run_installer("--pack", str(self.out / "mine.zip"))
self.assertEqual(proc.returncode, 2)
self.assertIn("_BIOS_Pack.zip", proc.stderr)
def test_a_pack_named_by_the_user_reads_its_platform_inside(self):
named = self.out / "Living_Room_BIOS_Pack.zip"
proc = self.run_installer("--pack", str(named))
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
pack = install.PackSource([named])
self.addCleanup(pack.close)
self.assertEqual(pack.platforms(), ["retroarch"])
def _members(folder: Path, sizes: dict[str, int]) -> list:
"""PackMembers of noise files written in folder."""
folder.mkdir(parents=True, exist_ok=True)
members = []
for name, size in sorted(sizes.items()):
data = _noise(name, size)
source = folder / name.replace("/", "_")
source.write_bytes(data)
members.append(install.PackMember(name, _sha1(data), len(data), source))
return members
def _folder(path: Path) -> dict[str, bytes]:
return {child.name: child.read_bytes() for child in sorted(path.iterdir())}
class TheSwapIsWhole(unittest.TestCase):
"""The new files replace the earlier pack of the name as one set: a
failure puts the earlier set back, a cleanup that fails keeps the pack."""
def setUp(self):
scratch = REPO_ROOT / "tmp"
scratch.mkdir(exist_ok=True)
self.root = Path(tempfile.mkdtemp(dir=scratch))
self.addCleanup(shutil.rmtree, self.root, True)
self.out = self.root / "out"
self.out.mkdir()
self.path = self.out / "RetroArch_BIOS_Pack.zip"
def test_a_rename_that_fails_puts_the_earlier_pack_back(self):
old = install.write_pack(self.path, b"{}", _members(self.root / "a", {
f"f{n}.bin": 24 * 1024 for n in range(3)}), 64 * 1024)
self.assertEqual(len(old.files), 2)
before = _folder(self.out)
real = os.replace
renamed: list[str] = []
def refuse_the_second_part(source, target):
if str(source).endswith(".partial"):
renamed.append(str(target))
if len(renamed) == 2:
raise PermissionError(13, "Permission denied")
return real(source, target)
new = _members(self.root / "b", {f"g{n}.bin": 24 * 1024 for n in range(5)})
with mock.patch.object(install.os, "replace", refuse_the_second_part), \
self.assertRaises(install.PackError) as raised:
install.write_pack(self.path, b"{}", new, 64 * 1024)
self.assertEqual(raised.exception.left, [])
self.assertEqual(_folder(self.out), before)
def test_a_scratch_file_that_cannot_be_deleted_is_named(self):
source = self.root / "a.bin"
source.write_bytes(b"other bytes")
member = install.PackMember("a.bin", _sha1(b"listed bytes"), 11, source)
real = Path.unlink
def refuse_partial(path, missing_ok=False):
if path.name.endswith(".partial"):
raise PermissionError(13, "Permission denied")
return real(path, missing_ok=missing_ok)
with mock.patch.object(install.Path, "unlink", refuse_partial), \
self.assertRaises(install.PackError) as raised:
install.write_pack(self.path, b"{}", [member], None)
self.assertEqual([path.name.endswith(".partial") for path in raised.exception.left],
[True])
def test_a_cleanup_that_fails_keeps_the_pack_written(self):
install.write_pack(self.path, b"{}", _members(self.root / "a", {"a.bin": 1000}), None)
real = Path.unlink
def refuse_old(path, missing_ok=False):
if path.name.endswith(".old"):
raise PermissionError(13, "Permission denied")
return real(path, missing_ok=missing_ok)
new = _members(self.root / "b", {f"g{n}.bin": 24 * 1024 for n in range(3)})
with mock.patch.object(install.Path, "unlink", refuse_old):
written = install.write_pack(self.path, b"{}", new, 64 * 1024)
self.assertEqual(len(written.files), 2)
self.assertTrue(all(path.is_file() for path in written.files))
self.assertEqual(written.removed, [])
self.assertEqual(len(written.kept), 1)
self.assertTrue(written.kept[0][0].name.endswith(".old"))
def test_the_earlier_layout_is_removed_and_said(self):
install.write_pack(self.path, b"{}", _members(self.root / "a", {"a.bin": 1000}), None)
written = install.write_pack(self.path, b"{}", _members(
self.root / "b", {f"g{n}.bin": 24 * 1024 for n in range(3)}), 64 * 1024)
self.assertEqual(written.removed, [self.path])
self.assertEqual(sorted(_folder(self.out)), sorted(f.name for f in written.files))
def test_a_file_of_another_pack_under_a_part_name_stays(self):
stranger = self.out / "RetroArch_BIOS_Pack.part1of5.zip"
stranger.write_bytes(b"not a zip")
written = install.write_pack(self.path, b"{}", _members(self.root / "a",
{"a.bin": 1000}), None)
self.assertEqual(stranger.read_bytes(), b"not a zip")
self.assertEqual([path for path, _why in written.kept], [stranger])
def test_a_crc_that_does_not_read_back_writes_nothing(self):
with mock.patch.object(install.zipfile.ZipFile, "testzip", return_value="a.bin"), \
self.assertRaises(install.PackError):
install.write_pack(self.path, b"{}", _members(self.root / "a",
{"a.bin": 1000}), None)
self.assertEqual(_folder(self.out), {})
def test_members_are_deflated_at_the_level_named(self):
text = " ".join(f"word{(n * 7919) % 1013}" for n in range(40000)).encode()
source = self.root / "text.bin"
source.write_bytes(text)
def raw(level: int) -> int:
packer = zlib.compressobj(level, zlib.DEFLATED, -15)
return len(packer.compress(text) + packer.flush())
self.assertNotEqual(raw(6), raw(install.PACK_COMPRESSLEVEL))
install.write_pack(self.path, b"{}", [install.PackMember(
"text.bin", _sha1(text), len(text), source)], None)
with zipfile.ZipFile(self.path) as archive:
self.assertEqual(archive.getinfo("text.bin").compress_size,
raw(install.PACK_COMPRESSLEVEL))
# A drive with little room, the list's tree declaring a large archive.
SPACE_CHILD = """
import collections, importlib.util, sys
spec = importlib.util.spec_from_file_location("install", {script!r})
install = importlib.util.module_from_spec(spec)
spec.loader.exec_module(install)
usage = collections.namedtuple("usage", "total used free")
install.shutil.disk_usage = lambda folder: usage(1 << 40, 0, 10 * 1024 * 1024)
sys.argv = ["install.py", *sys.argv[1:]]
install.main()
"""
class TheSpaceCountsTheTreeArchive(Repository):
def write_list(self) -> None:
super().write_list()
listed_path = self.served / "install" / "retroarch.json"
listed = json.loads(listed_path.read_text())
listed["data_directories"][0]["archive_size"] = 50 * 1024 * 1024
listed_path.write_text(json.dumps(listed))
def test_a_drive_without_room_for_the_archive_is_refused(self):
proc = self.run_installer("--pack", f"{self.out}{os.sep}", code=SPACE_CHILD.format(
script=str(REPO_ROOT / "install.py")))
self.assertEqual(proc.returncode, 2, proc.stdout + proc.stderr)
self.assertIn("has 10.0 MB free", proc.stderr)
self.assertEqual(self.packs(), [])
def test_the_largest_archive_counts_once(self):
trees = [{"files": {"a": {}}, "archive_size": 300},
{"files": {"b": {}}, "archive_size": 500}, {"files": {}, "archive_size": 9000}]
self.assertEqual(install.pack_space_bytes(10, 20, trees), 530)
class ThePackNamesItsPlatform(Repository):
tree: dict = {}
def test_a_name_that_spells_another_platform_is_refused(self):
proc = self.run_installer("--pack", str(self.out / "Batocera_BIOS_Pack.zip"))
self.assertEqual(proc.returncode, 2, proc.stdout + proc.stderr)
self.assertIn("names a pack for Batocera, and this one is for RetroArch", proc.stderr)
self.assertEqual(self.packs(), [])
def test_a_pack_renamed_for_another_platform_is_read_by_its_manifest(self):
self.assertEqual(self.make().returncode, 0)
renamed = self.out / "Batocera_BIOS_Pack.zip"
self.packs()[0].rename(renamed)
pack = install.PackSource([renamed])
self.addCleanup(pack.close)
self.assertEqual(pack.platforms(), ["retroarch"])
proc = subprocess.run(
[sys.executable, str(REPO_ROOT / "install.py"), "--platform", "batocera",
"--dest", str(self.root / "x"), "--from-pack", str(renamed), "--yes"],
env=self.env(offline=True), capture_output=True, text=True, timeout=120,
check=False, stdin=subprocess.DEVNULL)
self.assertEqual(proc.returncode, 1, proc.stdout + proc.stderr)
self.assertIn("is a pack for RetroArch, not Batocera", proc.stderr)
class PartSizes(unittest.TestCase):
def test_a_size_reads_as_bytes_or_with_its_unit(self):
self.assertEqual(install.parse_part_size("1900M"), 1900 * 1024 ** 2)
self.assertEqual(install.parse_part_size("4g"), 4 * 1024 ** 3)
self.assertEqual(install.parse_part_size("70000"), 70000)
for text in ("big", "1K", "-5M"):
with self.subTest(text=text), \
mock.patch("sys.stderr", io.StringIO()), \
self.assertRaises(Exception):
install.parse_part_size(text)
if __name__ == "__main__":
unittest.main()
+140 -9
View File
@@ -1070,6 +1070,9 @@ def golden_states() -> dict:
install.tui_update(states["removal-confirm"], Key("enter"))
states["removal-done"] = removal_done_state()
states["backups"] = backups_state()
states["pack-plan"] = pack_plan_state()
states["pack-plan-parts"] = pack_plan_state(parts=3)
states["pack-done"] = pack_done_state()
return states
@@ -1140,6 +1143,51 @@ def backups_state(purpose: str = "backups") -> install.TuiState:
return state
PACK_PATH = HOME / "Downloads" / "RetroArch_Custom_BIOS_Pack.zip"
def pack_event(status: str, parts: int = 1, size: int = 0) -> dict:
"""The pack event of a dry run (planned) or a run (written), the pack
whole or in parts on a FAT32 card."""
names = ([PACK_PATH] if parts == 1 else
[PACK_PATH.with_name(f"RetroArch_Custom_BIOS_Pack.part{n}of{parts}.zip")
for n in range(1, parts + 1)])
message = ("One ZIP." if parts == 1 else
f"In {parts} parts of at most 3.9 GB, as FAT32 holds no file of 4 GB.")
return {"event": "pack", "platform": "retroarch", "path": str(PACK_PATH), "files": 4,
"bytes": 1049604, "size": size, "parts": [str(name) for name in names],
"status": status, "message": message}
def pack_plan_state(parts: int = 1) -> install.TuiState:
"""More, Make a pack, its dry run read."""
state = checked_state()
rows = install.tui_rows(state)
state.focus["plan"] = [row.action for row in rows].index("more")
assert install.tui_update(state, Key("enter")) == []
rows = install.tui_rows(state)
state.focus["more"] = [row.action for row in rows].index("packmake")
effects = install.tui_update(state, Key("enter"))
assert effects == [("run", "pack_plan")], effects
install.tui_receive(state, ("event", state.run_id, pack_event("planned", parts)))
install.tui_receive(state, ("ended", state.run_id, 0, []))
return state
def pack_done_state() -> install.TuiState:
"""The pack made, in three parts on a FAT32 card."""
state = pack_plan_state(parts=3)
effects = install.tui_update(state, Key("enter"))
assert effects == [("run", "pack")], effects
install.tui_receive(state, ("event", state.run_id, {
"event": "progress", "files_done": 4, "files_total": 4, "bytes_done": 1049604,
"bytes_total": 1049604}))
install.tui_receive(state, ("event", state.run_id,
pack_event("written", 3, size=1048000)))
install.tui_receive(state, ("ended", state.run_id, 0, []))
return state
# A board list as install/targets/ publishes it, read by Device: the boards
# by the names the list gives them, the device images each one runs.
TARGETS = {"bcm2711": {"cores": ["pcsx_rearmed"], "images": ["rpi4"]},
@@ -15246,12 +15294,12 @@ class GamesEndToEnd(unittest.TestCase):
SCREEN_WORDS = {
"setup": (29, 36, 34, 34), "platforms": (23, 27, 89, 225), "folder": (27, 27, 25, 25),
"folder-card": (52, 52, 50, 50), "browse": (17, 17, 15, 15), "path": (23, 23, 25, 25),
"create": (23, 23, 21, 21), "checking": (18, 18, 17, 17), "plan": (31, 31, 31, 31),
"plan-in-place": (22, 22, 19, 19), "systems": (36, 37, 36, 36),
"create": (23, 23, 21, 21), "checking": (18, 18, 17, 17), "plan": (32, 32, 32, 32),
"plan-in-place": (23, 23, 20, 20), "systems": (36, 37, 36, 36),
"regions": (45, 44, 42, 42), "cores": (47, 47, 45, 45),
"preview": (29, 29, 28, 28), "command": (22, 22, 16, 16), "confirm": (22, 22, 20, 20),
"installing": (32, 32, 31, 31), "result": (33, 33, 31, 31), "error": (37, 34, 32, 31),
"quit": (14, 14, 12, 12), "help": (24, 26, 26, 26), "plan-games": (36, 46, 54, 54),
"quit": (14, 14, 12, 12), "help": (24, 26, 26, 26), "plan-games": (36, 47, 55, 55),
"games": (36, 45, 44, 44), "plan-details": (30, 30, 29, 29),
"result-details": (30, 30, 19, 19),
# The plan's words, plus the recorded choice by name, its row (the one
@@ -15266,14 +15314,18 @@ SCREEN_WORDS = {
# A list of boards and one of emulators, each with the line that says
# what the choice does and the gloss of "board".
"device": (35, 35, 33, 33), "emulators": (29, 29, 27, 27),
# A plan names More (one word) where the folder has a record or a
# backup (design 4.3), the first install's plan unchanged. More's
# four rows, Remove files with each system the record holds and its
# Every plan names More (one word, counted in the plan budgets above):
# a pack can always be made. More's four rows where the folder has a
# record or a backup, then Make a pack (three words), Remove files with each system the record holds and its
# size, the removal plan (what goes, the space freed, the folder, what
# stays and why), its confirm and result, and the backups newest first.
"more": (17, 17, 15, 15), "remove": (31, 31, 29, 29), "removal": (34, 34, 32, 32),
"more": (20, 20, 18, 18), "remove": (31, 31, 29, 29), "removal": (34, 34, 32, 32),
"removal-confirm": (18, 18, 16, 16), "removal-done": (18, 18, 16, 16),
"backups": (24, 24, 22, 22),
# Make a pack: what goes in, its size and setup, where it goes, how it
# is written (one ZIP, or the parts and why), then the result.
"pack-plan": (27, 27, 24, 24), "pack-plan-parts": (39, 39, 35, 35),
"pack-done": (29, 29, 25, 25),
}
@@ -15293,12 +15345,12 @@ class MoreScreens(unittest.TestCase):
self.addCleanup(patcher.stop)
def test_a_plan_names_more_where_it_has_something_to_act_on(self):
self.assertNotIn("more", [row.action for row in install.tui_rows(checked_state())])
self.assertEqual([row.action for row in install.tui_rows(more_state())][-2:],
["more", "quit"])
done = golden_states()["plan-in-place"]
done.has_backups = True
self.assertEqual(install.tui_rows(done)[-1].action, "more")
self.assertEqual([row.action for row in install.tui_rows(more_state("more"))],
["remove", "backups", "putback", "dropbackup", "packmake"])
def test_the_removal_plan_asks_its_own_child(self):
state = removal_state()
@@ -15398,6 +15450,85 @@ class MoreScreens(unittest.TestCase):
self.assertIn("scph5501.bin: changed since it was installed", text)
class PackScreens(unittest.TestCase):
"""More, Make a pack: a dry run says what goes in, the run makes it,
each a child given the plan's choice and none of the folder's options."""
def setUp(self):
patcher = mock.patch.object(install, "_mounted_cards", return_value=[])
patcher.start()
self.addCleanup(patcher.stop)
def test_more_is_on_every_plan_with_make_a_pack(self):
state = checked_state()
self.assertEqual([row.action for row in install.tui_rows(state)][-2:],
["more", "quit"])
state.stack.append("more")
self.assertEqual([row.action for row in install.tui_rows(state)], ["packmake"])
self.assertEqual([row.action for row in install.tui_rows(more_state("more"))][-1],
"packmake")
def test_the_dry_run_takes_the_choice_and_not_the_folder(self):
state = pack_plan_state()
state.regions = ["japan"]
state.passthrough = [("--save-dir", "/saves")]
argv = install.tui_argv(state, "pack_plan", "python", "install.py")
self.assertIn("--region=japan", argv)
self.assertFalse([arg for arg in argv if arg.startswith(("--dest", "--save-dir"))])
# No Downloads folder here: the home folder.
self.assertEqual(argv[-3:], [f"--pack={HOME}{os.sep}", "--dry-run", "--events"])
with mock.patch.object(install, "_is_dir", return_value=True):
self.assertEqual(install.tui_pack_dir(state), HOME / "Downloads")
self.assertEqual([row.action for row in install.tui_rows(state)],
["packgo", "packwhere"])
def test_make_the_pack_runs_it_and_close_ends_on_its_code(self):
state = pack_plan_state()
self.assertEqual(install.tui_update(state, Key("enter")), [("run", "pack")])
self.assertEqual(install.tui_argv(state, "pack", "python", "install.py")[-2:],
["--events", "--yes"])
self.assertIn("Making the pack...", screen_text(install.tui_view(state, 80, 24)))
install.tui_receive(state, ("event", state.run_id, pack_event("written", size=900)))
install.tui_receive(state, ("ended", state.run_id, 0, []))
self.assertIn("Pack made: 4 files, 900 B.", screen_text(install.tui_view(state, 80, 24)))
install.tui_update(state, Key("enter"))
self.assertEqual(state.exit_code, 0)
def test_a_pack_not_made_says_so_and_back_returns_to_more(self):
state = pack_plan_state()
install.tui_update(state, Key("enter"))
failed = {**pack_event("failed"), "parts": [],
"message": "1 file could not be had: no pack was written."}
install.tui_receive(state, ("event", state.run_id, failed))
install.tui_receive(state, ("ended", state.run_id, 1, []))
text = screen_text(install.tui_view(state, 80, 24))
self.assertIn("No pack was made.", text)
self.assertIn("1 file could not be had", text)
install.tui_update(state, Key("esc"))
self.assertEqual(state.screen, "more")
def test_change_where_browses_and_reads_the_plan_again(self):
state = pack_plan_state()
state.focus["packplan"] = 1
with mock.patch.object(install, "_browse_rows", return_value=(
[install.TuiRow("use", "Use this folder")], "")):
install.tui_update(state, Key("enter"))
self.assertEqual((state.screen, state.browse_for), ("browse", "packto"))
state.browse_dir = Path("/media/card")
self.assertEqual(install.tui_update(state, Key("enter")), [("run", "pack_plan")])
self.assertEqual(state.screen, "packplan")
self.assertEqual(install.tui_argv(state, "pack_plan", "python", "install.py")[-3],
f"--pack={Path('/media/card')}{os.sep}")
def test_a_dry_run_that_ends_without_its_event_is_an_error(self):
state = checked_state()
state.stack += ["more"]
state.focus["more"] = 0
install.tui_update(state, Key("enter"))
install.tui_receive(state, ("ended", state.run_id, 2, ["install.py: error: no"]))
self.assertEqual(state.screen, "error")
class ScreenWordBudgets(unittest.TestCase):
def setUp(self):
patcher = mock.patch.object(install, "_mounted_cards", return_value=[])
+69 -4
View File
@@ -876,6 +876,68 @@ without a terminal, or no at the question). With `--events` the run writes
`removal_plan`, `removed`, `backup` and `restored` events, see
[Machine-readable events](#machine-readable-events).
## Making a pack { #making-a-pack }
`--pack PATH` downloads the files of the choice into a pack ZIP instead of a
BIOS folder, for another device or an install without the internet. Every
narrowing option applies as for an install (`--system`, `--core`,
`--emulator`, `--region`, `--target`, `--no-game-data`, and `--for-games
FOLDER` with `--required-only`), and `--dry-run` says what would go in,
`--verbose` listing each file:
```
python3 install.py --platform retroarch --system sony-playstation --pack ~/Downloads/ --dry-run
Pack for RetroArch: 108 files (324.0 MB).
Pack: ~/Downloads/RetroArch_Custom_BIOS_Pack.zip
--verbose lists the files.
```
Without `--dry-run` the run downloads the files, writes the pack and ends on
`Pack made:` with the count and the size of the ZIP.
A folder takes the name `<Platform>_BIOS_Pack.zip`, with `_Custom` when the
choice narrows the list. A file name must end with `_BIOS_Pack.zip`, the
name `--from-pack` and the parts read, and must not name another platform
(`Batocera_BIOS_Pack.zip` for a RetroArch pack is refused). The reader trusts
the platform the pack's own list names over its file name. On the other device,
`--from-pack` on the pack installs the same files at the same places, with no
network and no option: the pack's `manifest.json` carries the list narrowed
to the choice, the cores per board and every file's SHA-1. A file two places
share is stored once, and each data tree sits where the reader looks for it.
Every file is checked against its SHA-1 as it is written into the ZIP, and the
ZIP is read back with its CRCs before it takes its name. The pack is written
beside its final name, so a download that fails, a file that does not match or
a stop leaves no file behind. An earlier pack of the same name, whole or in
parts, is set aside while the new files take their names, and put back if one
of them cannot: the folder holds the old pack or the new one, never a mix of
their parts. The earlier files are then deleted and each one is named. A file
of that name that is not a part of this pack stays and is named too. With one
zlib the bytes depend on the choice alone: members in a fixed order, a fixed
date and mode, deflate level 9 on each member. Another deflate (zlib-ng, which
CPython 3.14 ships on Windows) gives other bytes for the same members. Making
the pack needs room for the files, the ZIP and the largest data tree archive
together on the drive it goes to.
`--split SIZE` (`1900M`, `4G`) writes parts of at most that size, each a whole
ZIP named `<Name>.part1of3.zip`, as release packs are split, with the marker
`--check` reads. On a FAT32 drive, which holds no file of 4 GB or more, a pack
that would pass that is split by itself, and the run says so in one line.
`--from-pack` takes any one of the parts and finds the others beside it.
On the full screen, **More** on the plan holds **Make a pack**. Its plan names
the files, their size, where the pack goes (Downloads, else the home folder,
**Change where** to browse) and how it is written, then **Make the pack**
gives the result. The plan's choice is the pack's, and the options of the
folder of this machine (the save directory, the installed cores, the card's
own games) are left out.
Exit codes: `0` once written, or listed with `--dry-run`, `1` when a file
could not be had or the pack could not be written, `2` when nothing was tried
(an option refused, a choice that keeps no file, a file larger than a part,
too little room). With `--events` the run writes a `pack` event, see
[Machine-readable events](#machine-readable-events).
## Copy from an old card { #copy-from-an-old-card }
The card a handheld came with, a backup of an old BIOS folder, a Downloads
@@ -1196,6 +1258,8 @@ what the options name, everything by default.
| <span id="option-backup"></span>`--backup` | With `--remove`, move the files into a dated folder of `retrobios-backup` instead of deleting them, for `--restore` to put back |
| <span id="option-backups"></span>`--backups` | List the backups of the BIOS folder, newest first, with the date, the files and the size of each |
| <span id="option-delete-backup"></span>`--delete-backup FOLDER` | Delete one backup listed by `--backups`, after one question that names its date and size (`--yes` skips it) |
| <span id="option-pack"></span>`--pack PATH` | Download the choice into a pack ZIP at PATH instead of a BIOS folder, for another device or an install without the internet: a folder takes `<Platform>_BIOS_Pack.zip`. The narrowing options apply, `--dry-run` lists what would go in, and `--from-pack` installs from it. See [Making a pack](#making-a-pack) |
| <span id="option-split"></span>`--split SIZE` | With `--pack`, write parts of at most SIZE (`1900M`, `4G`), each a whole ZIP. A pack that would pass 4 GB on a FAT32 drive is split by itself |
| <span id="option-tui"></span>`--tui` | Open the full-screen interface, or stop with the reason it cannot open here (code 2) instead of falling back to the questions. Wins over `RETROBIOS_PLAIN` and `ACCESSIBLE`. See [The full-screen interface](#the-full-screen-interface) |
| <span id="option-plain"></span>`--plain` | Ask the questions line by line instead of the full-screen interface, the mode for a screen reader. See [The full-screen interface](#the-full-screen-interface) |
| <span id="option-version"></span>`--version` | Print the installer's identity, the first 12 hex digits of the SHA-256 the bootstraps pin |
@@ -1976,8 +2040,8 @@ fields, the installer refuses to narrow rather than install everything.
| Code | Meaning |
|------|---------|
| `0` | everything asked for is installed or already in place, or removed, put back or deleted |
| `1` | a failure: the one-liner could not download or verify `install.py`, or found no Python 3.8 with its ssl, unicodedata and zlib modules (nothing was run), an unusable base URL, `--installed-cores` with no core found, a manifest that fails validation, a fetch that never succeeded, no platform to install for in a non-interactive run, some files failed or were left out by `--offline` while others installed, a `--from-pack` pack that cannot be read, lacks a part or is for another platform, a `--from` folder that does not exist or cannot be read, a BIOS folder that is a file or lies under one, a `--dest` that is not the card of the system named (another system's card, a folder inside one, a drive with none of its files where its card always has them, or a folder that does not exist), `--restore` could not put a file back, `--remove` or `--delete-backup` could not delete a file or update the install record, or `--add-app` could not put every file of the app on the card |
| `2` | nothing was installed: every file the run tried failed (a BIOS folder that cannot be written, for one), or `--offline` left every file out, the drive has too little free space for the download (checked before any folder is created), or the question about a folder that does not exist, named with `--dest` or typed at the folder question, was answered no. Also an option the installer refused before any download: an unknown option, `--jobs` outside 1 to 32, `--target` with `--every-board`, `--target` with `--from-pack` or `--offline` (or `RETROBIOS_INSTALL_OFFLINE` set) when no core list per board is at hand (the pack carries none and none is beside `--manifest` as `targets/<platform>.json`), or for a platform that publishes none, which is said to have no hardware targets, `--list-targets` with `--offline` and neither, `--add-app` with `--check`, `--dry-run`, a listing, `--from-pack` or `--offline`. The message then starts with `install.py: error:`. Also an unknown platform, target, system, core or emulator, said in an `Error:` or `Unknown platform` line and an `error` event whose `stage` is `option`. Also `--add-app` for a folder on no card that takes the app, said in an `Error:` line and an `app` event before anything is written. With `--restore` or `--delete-backup`, a folder that is not a dated folder inside `retrobios-backup`. With `--remove`, nothing removed: no install record of the setup, nothing it can remove, no `--yes` without a terminal, or no at its question, and the same for `--delete-backup`. Also a quit chosen before the install, as `gh` ends a cancelled prompt: `q` at a question, `q` or **Quit** on the full screen, which then keeps `RetroBIOS: quit. Nothing was installed.`, and the full screen closed with no button pressed (`RETROBIOS_IDLE_EXIT`). No code but `0` closes a Windows Terminal tab started on the installer itself, so such a tab stays open on a quit |
| `1` | a failure: the one-liner could not download or verify `install.py`, or found no Python 3.8 with its ssl, unicodedata and zlib modules (nothing was run), an unusable base URL, `--installed-cores` with no core found, a manifest that fails validation, a fetch that never succeeded, no platform to install for in a non-interactive run, some files failed or were left out by `--offline` while others installed, a `--from-pack` pack that cannot be read, lacks a part or is for another platform, a `--from` folder that does not exist or cannot be read, a BIOS folder that is a file or lies under one, a `--dest` that is not the card of the system named (another system's card, a folder inside one, a drive with none of its files where its card always has them, or a folder that does not exist), `--restore` could not put a file back, `--remove` or `--delete-backup` could not delete a file or update the install record, `--pack` could not get a file or write the pack (nothing is left behind), or `--add-app` could not put every file of the app on the card |
| `2` | nothing was installed: every file the run tried failed (a BIOS folder that cannot be written, for one), or `--offline` left every file out, the drive has too little free space for the download (checked before any folder is created), or the question about a folder that does not exist, named with `--dest` or typed at the folder question, was answered no. Also an option the installer refused before any download: an unknown option, `--jobs` outside 1 to 32, `--target` with `--every-board`, `--target` with `--from-pack` or `--offline` (or `RETROBIOS_INSTALL_OFFLINE` set) when no core list per board is at hand (the pack carries none and none is beside `--manifest` as `targets/<platform>.json`), or for a platform that publishes none, which is said to have no hardware targets, `--list-targets` with `--offline` and neither, `--add-app` with `--check`, `--dry-run`, a listing, `--from-pack` or `--offline`. The message then starts with `install.py: error:`. Also an unknown platform, target, system, core or emulator, said in an `Error:` or `Unknown platform` line and an `error` event whose `stage` is `option`. Also `--add-app` for a folder on no card that takes the app, said in an `Error:` line and an `app` event before anything is written. With `--restore` or `--delete-backup`, a folder that is not a dated folder inside `retrobios-backup`. With `--pack`, no pack tried: a choice that keeps no file, a file larger than a part of `--split`, too little room, or `--pack` with an option that reads the BIOS folder of this machine. With `--remove`, nothing removed: no install record of the setup, nothing it can remove, no `--yes` without a terminal, or no at its question, and the same for `--delete-backup`. Also a quit chosen before the install, as `gh` ends a cancelled prompt: `q` at a question, `q` or **Quit** on the full screen, which then keeps `RetroBIOS: quit. Nothing was installed.`, and the full screen closed with no button pressed (`RETROBIOS_IDLE_EXIT`). No code but `0` closes a Windows Terminal tab started on the installer itself, so such a tab stays open on a quit |
| `3` | `--check` ran and found files to fetch or wrong copies, nothing having failed. A failure takes `1` as before: a manifest refused, a `--from` folder that does not exist. Until November 2026 this case also ended on `1`, so a script that reads any code but `0` as "not ready" needs no change |
| `130` | stopped with Ctrl+C, or with Ctrl+C or Ctrl+D at a question, the terminal keeping `RetroBIOS: stopped. Nothing was installed.` before an install. Run the same command again to carry on |
| `141` | the output was piped to a reader that closed early (`--list-platforms \| head`) |
@@ -2021,7 +2085,7 @@ other schemas under `api/v1/schemas/`.
| Kind | Keys | When |
|------|------|------|
| `start` | `schema`, `installer`, `mode` | First line. `schema` is 1, `installer` the identity `--version` prints, `mode` one of `install`, `check`, `dry-run`, `list` (also `--backups`), `remove` (`--remove`, `--delete-backup`), `restore` |
| `start` | `schema`, `installer`, `mode` | First line. `schema` is 1, `installer` the identity `--version` prints, `mode` one of `install`, `check`, `dry-run`, `list` (also `--backups`), `remove` (`--remove`, `--delete-backup`), `restore`, `pack` (`--pack`, with `--dry-run` too) |
| `unsearched` | `folder`, `reason`, `message` | Before `detect`, once for each folder the search for setups could not look in, this user being refused it or a read failing there (a failing card, a link that loops), or under WSL the Windows side when Windows did not answer (`folder` is then the drive mount, `/mnt`). What it would hold counts as absent, and the other places are still searched: `detect` then lists what they hold, and an empty `platforms` after an `unsearched` line means nothing was found where the installer could look. `reason` says why in words (`Permission denied`), `message` says it in a sentence |
| `detect` | `os`, `os_name`, `platforms` | Once the platforms are known. `os_name` comes from `/etc/os-release`. `platforms` lists `{platform, name, bios_dir}`, and is empty when nothing supported was found |
| `error` | `stage`, `reason`, `platform`, `message` | The file list could not be read (`stage` is `manifest`): `reason` is `network`, `not_found` or `invalid`, `clock` when the server's certificate was refused and the system clock reads a date before the installer was written, `no_ca` when the machine holds no list of trusted certificates (`SSL_CERT_FILE` names one), `no_ssl` when this Python was built without its `ssl` module and cannot use HTTPS, or `offline` when `--offline` forbids the request. A folder named with `--from` cannot be read (`stage` is `from`, `reason` `not_found`, `not_a_folder` for a file that is no ZIP, `unreadable`, or `system` for the root of the system, `/proc`, `/sys` or `/dev`). The BIOS folder sits under a folder this user cannot open (`stage` is `dest`, `reason` `unreadable`), or is a file or lies under one (`reason` `not_a_folder`), and the run ends with code 1 before anything is written. A platform, target, system, core or emulator named on the command line is unknown or cannot be used here (`stage` is `option`, `reason` `unknown`, `platform` the platform it was checked against or the name typed), refused before any download with code 2. The BIOS folder cannot be created (`stage` is `dest`, `reason` `not_writable`): a `summary` follows with what the run installed before it. Two systems are detected on one machine and no `--dest` names the folder (`stage` is `detect`, `reason` `conflict`). The platform named with `--platform` is found nowhere and no folder can be assumed for it: a card system with no card named, a portable emulator, Batocera or Recalbox named on a computer (their folder is the `bios` folder of their SHARE drive), or no usual folder on this system or one set aside behind a folder this user cannot open (`stage` is `detect`, `reason` `not_found`). So is a platform named by a file list or a pack, in a run without questions where it is found nowhere here. A `--dest` refused as the card of the system named carries the same `stage` and `reason`: another system's card, a folder inside a card, a drive with none of the files its card always has, or a folder that does not exist. `message` says it in words, and is the only thing that tells these cases apart |
@@ -2054,11 +2118,12 @@ other schemas under `api/v1/schemas/`.
| `removed` | `platform`, `dest`, `size`, `ok`, `reason`, `moved_to` | Each file `--remove` took. `ok` is false, with `reason`, for a file that stays. `moved_to` is its place in the backup with `--backup`, empty otherwise |
| `restored` | `folder`, `path`, `size`, `ok`, `reason` | Each file `--restore` put back from the backup `folder` to `path` |
| `backup` | `folder`, `date`, `files`, `bytes`, `source`, `status`, `message` | A backup folder: `status` is `listed` by `--backups`, `made` by `--remove --backup`, `deleted` or `not_deleted` by `--delete-backup`. `date` is when it was made, local time. `source` is `remove` for a removal's backup and `install` for the files an install replaced |
| `pack` | `platform`, `path`, `files`, `bytes`, `size`, `parts`, `status`, `message` | With `--pack`, once: `status` is `planned` with `--dry-run`, `written` once every part is in place, `failed` when no pack was written (`message` says why). `files` and `bytes` count the pack's members, each file stored once, `size` what the written files take on disk (0 unless `written`), `parts` each file written or to be written, the pack alone when it is one ZIP |
| `end` | `code` | Last line, with the exit status the process returns (see [Exit status](#exit-status)) |
<!-- /generated: events -->
Schema 1 can gain a kind (`found` came with `--from`, `declared` with `--declared-only`, `unsearched` with the search that goes on past a closed folder, `app` with `--add-app`, `data` with the size of the data trees, `version` with the list's version, `record` with the install record, `removal_plan`, `removed`, `restored` and `backup` with removal), never a key of an
Schema 1 can gain a kind (`found` came with `--from`, `declared` with `--declared-only`, `unsearched` with the search that goes on past a closed folder, `app` with `--add-app`, `data` with the size of the data trees, `version` with the list's version, `record` with the install record, `removal_plan`, `removed`, `restored` and `backup` with removal, `pack` with `--pack`), never a key of an
existing kind: a reader skips a kind it does not know. An option refused
before the run starts (`install.py: error:`, code 2) writes
no event at all. A program reads a missing `end` as that case, or as a
+1 -1
View File
@@ -59,7 +59,7 @@ Every module in `tests/`, by the area it guards.
| Packs and manifests | synthetic + real packs | `test_artifact_lock`, `test_atomic_artifacts`, `test_batocera_cores`, `test_core_data_trees`, `test_deterministic_zip`, `test_emulator_pack_counts`, `test_finalize_pack_names`, `test_large_file_cache`, `test_libretro_layout`, `test_manifest_entry`, `test_minui_platform`, `test_no_game_data`, `test_pack_conformance_dirs`, `test_pack_core_extras`, `test_pack_counts`, `test_pack_destinations`, `test_pack_failures`, `test_pack_file_names`, `test_pack_grouping`, `test_pack_integrity`, `test_pack_member_identity`, `test_pack_readme`, `test_platform_inheritance`, `test_platform_keys`, `test_release_packs`, `test_required_only_archives`, `test_required_only_twins`, `test_save_root`, `test_split_extras`, `test_split_names`, `test_split_pack`, `test_system_pack_extras`, `test_system_pack_parity`, `test_torrentzip`, `test_which_pack` |
| Slots and regions | synthetic + profiles | `test_region`, `test_region_agnostic_scan`, `test_region_groups`, `test_region_held`, `test_region_platform_index`, `test_region_required_only`, `test_slot`, `test_slots`, `test_slots_shipped_file` |
| Hardware targets and systems | synthetic + target files | `test_amberelec_targets`, `test_emuelec_targets`, `test_extract_targets`, `test_lakka_targets`, `test_libretro_slugs`, `test_system_ids`, `test_system_selection`, `test_target_names`, `test_target_scrapers`, `test_target_systems`, `test_target_verify` |
| Installer and downloads | loopback server | `test_check_release`, `test_download`, `test_install`, `test_install_cores`, `test_install_experience`, `test_install_filesystems`, `test_install_app`, `test_install_from`, `test_install_games`, `test_install_journeys`, `test_install_offline`, `test_install_removal`, `test_install_selection`, `test_install_tui`, `test_pypi_package` |
| Installer and downloads | loopback server | `test_check_release`, `test_download`, `test_install`, `test_install_cores`, `test_install_experience`, `test_install_filesystems`, `test_install_app`, `test_install_from`, `test_install_games`, `test_install_journeys`, `test_install_offline`, `test_install_pack`, `test_install_removal`, `test_install_selection`, `test_install_tui`, `test_pypi_package` |
| Handheld launchers | a pty as the console, fake installer and firmware tools, stubbed PortMaster dialogs | `test_handheld_launchers`, `test_port` |
| Running cores | parsers on fixed inputs, a libretro core built from C in the test when a compiler exists | `test_core_probe` |
| Measurement records | synthetic record files, the committed `measurements/` against HEAD, the **Proof** line naming the BIOS a core ran, and that no page shows a Tested block, a region outcome or a time per frame | `test_measurements` |