mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-22 17:47:48 -06:00
feat: lead with dArkOS, which replaced ArkOS
ArkOS was archived on 30 December 2025 and points its users to dArkOS, and JELOS has reached its end of life. The handheld guide lists dArkOS first with the devices of its latest release, and marks ArkOS and JELOS as no longer updated, citing each project's own page. A card read from a computer is called dArkOS or ArkOS, since both write the same EASYROMS tree. The demos are recorded on dArkOS.
This commit is contained in:
1 parent
c710069b65
commit
7d6efc3522
30 files changed
+193
-96
No files matched your search
@@ -31,7 +31,7 @@ curl -fsSL https://abdess.github.io/retrobios/i | sh
|
||||
|
||||
**A handheld, an SD card, or not sure?** [Pick the device](https://abdess.github.io/retrobios/which-pack/): its page gives the folder and the command. A muOS, Onion, spruceOS, MinUI, KNULLI, ROCKNIX, Lakka or MiSTer SD card plugged into the computer is found by itself.
|
||||
|
||||

|
||||

|
||||
|
||||
The installer finds the setup and its BIOS folder, installs the files it needs (only what the games need when it finds them on the card) and checks each one. Its screen installs everything, or fewer under **Choose systems**. Arrow keys and Enter drive it, or a controller on a handheld. It sends no report of its own ([what is counted](https://abdess.github.io/retrobios/wiki/privacy/)). Options go after the line in the form the [installer page](https://abdess.github.io/retrobios/wiki/installer/#passing-options) gives.
|
||||
|
||||
@@ -110,4 +110,4 @@ The scripts and tooling are released under the [MIT License](LICENSE).
|
||||
The BIOS and firmware files are not covered by that license: they are third-party system software, preserved and provided for personal backup, archival, and interoperability with emulation software. [NOTICE](NOTICE) sets out their status and how to ask for a file to be removed.
|
||||
The reasoning, and where it is weakest, is in [the project's legal position](https://abdess.github.io/retrobios/wiki/legal/).
|
||||
|
||||
*Auto-generated on 2026-11-12T02:12:16Z*
|
||||
*Auto-generated on 2026-11-12T06:24:42Z*
|
||||
@@ -2,22 +2,22 @@
|
||||
"default": {
|
||||
"width": 800,
|
||||
"height": 460,
|
||||
"setup": "ArkOS",
|
||||
"setup": "dArkOS or ArkOS",
|
||||
"games": 6,
|
||||
"systems": 6,
|
||||
"files": 43,
|
||||
"size": "15.1 MB",
|
||||
"alt": "Recording of the one-line command in a terminal, on a demonstration card. The installer finds an ArkOS SD card with 6 games, plans 43 BIOS files (15.1 MB) for them, installs them and shows the summary."
|
||||
"alt": "Recording of the one-line command in a terminal, on a demonstration card. The installer finds a dArkOS or ArkOS SD card with 6 games, plans 43 BIOS files (15.1 MB) for them, installs them and shows the summary."
|
||||
},
|
||||
"handheld": {
|
||||
"width": 640,
|
||||
"height": 480,
|
||||
"setup": "ArkOS",
|
||||
"setup": "dArkOS",
|
||||
"games": 6,
|
||||
"systems": 6,
|
||||
"files": 43,
|
||||
"size": "15.1 MB",
|
||||
"pad": "gptokeyb",
|
||||
"alt": "Recording of the full-screen installer on the 640 by 480 screen of a handheld, started from the Tools menu of ArkOS, on a demonstration card. It finds the 6 games on the card, plans 43 BIOS files (15.1 MB) for them, installs them and shows the summary. The A button chooses, and the bottom line names the buttons."
|
||||
"alt": "Recording of the full-screen installer on the 640 by 480 screen of a handheld, started from the Tools menu of dArkOS, on a demonstration card. It finds the 6 games on the card, plans 43 BIOS files (15.1 MB) for them, installs them and shows the summary. The A button chooses, and the bottom line names the buttons."
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 99 KiB |
@@ -1,7 +1,7 @@
|
||||
# The installer demo of the "On the device" tab: the full-screen interface
|
||||
# on ArkOS, at the 640x480 screen of an R36S, as the Tools menu launcher
|
||||
# on dArkOS, at the 640x480 screen of an RG351MP, as the Tools menu launcher
|
||||
# starts it. Run scripts/make_demo.py --variant handheld, which builds the
|
||||
# card and ArkOS's root, serves the repository on loopback, starts VHS on
|
||||
# card and dArkOS's root, serves the repository on loopback, starts VHS on
|
||||
# this file from the repository root and encodes what it writes. Enter is
|
||||
# what gptokeyb sends for A (ports/shared/retrobios.gptk).
|
||||
|
||||
@@ -19,22 +19,18 @@ Set TypingSpeed 35ms
|
||||
Set CursorBlink false
|
||||
Set Theme { "name": "RetroBIOS", "background": "#12131c", "foreground": "#e6e6f0", "cursor": "#aebcff", "selection": "#3a3d52", "black": "#12131c", "red": "#ef9a9a", "green": "#a5d6a7", "yellow": "#ffcc80", "blue": "#90caf9", "magenta": "#aebcff", "cyan": "#aebcff", "white": "#cfd8dc", "brightBlack": "#7c82a3", "brightRed": "#ef9a9a", "brightGreen": "#a5d6a7", "brightYellow": "#ffcc80", "brightBlue": "#90caf9", "brightMagenta": "#c9d2ff", "brightCyan": "#c9d2ff", "brightWhite": "#e6e6f0" }
|
||||
|
||||
# ArkOS's root, the card at /roms, the interface started.
|
||||
# dArkOS's root, the card at /roms, the interface started.
|
||||
Hide
|
||||
Type 'exec "$RETROBIOS_DEMO_SESSION"'
|
||||
Enter
|
||||
Wait+Screen@60s /A Continue/
|
||||
Wait+Screen@60s /A Install/
|
||||
Sleep 300ms
|
||||
Show
|
||||
|
||||
# The first screen: the system found, its BIOS folder.
|
||||
# The plan, opened on the system found: only the files the games on the
|
||||
# card need.
|
||||
Sleep 300ms
|
||||
Screenshot tmp/demo/poster-handheld.png
|
||||
Sleep 2500ms
|
||||
Enter
|
||||
|
||||
# A: the plan, only the files the games on the card need.
|
||||
Wait+Screen@60s /A Install/
|
||||
Sleep 4500ms
|
||||
Enter
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 233 KiB After Width: | Height: | Size: 218 KiB |
Binary file not shown.
@@ -31,12 +31,8 @@ Screenshot tmp/demo/poster.png
|
||||
Sleep 600ms
|
||||
Enter
|
||||
|
||||
# The first screen: the card found.
|
||||
Wait+Screen@30s /ArkOS SD card \(EASYROMS\)/
|
||||
Sleep 2500ms
|
||||
Enter
|
||||
|
||||
# The plan: only the files the games on the card need.
|
||||
# The plan, opened on the one card found: only the files the games on it need.
|
||||
Wait+Screen@60s /RetroBIOS: dArkOS or ArkOS \(RetroArch files\)/
|
||||
Wait+Screen@60s /For the games on this card: yes/
|
||||
Sleep 4500ms
|
||||
Enter
|
||||
|
||||
Binary file not shown.
+1
-1
@@ -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 = "59a5f1990a9d802d47a47da705707856cd79d07675085aa42e3a9b6829a529ce"
|
||||
$defaultInstallSha256 = "1354775dff630816cd5cc6344f9e78c94c9fb8e0908909232d4da71d727d1bc9"
|
||||
# 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
|
||||
|
||||
+44
-15
@@ -2220,6 +2220,28 @@ def detected_os(plat: str, path: Path) -> str:
|
||||
return _DETECTED_OS.get((plat, path), "")
|
||||
|
||||
|
||||
# A card read from a computer can name a system it cannot tell from
|
||||
# another: dArkOS writes ArkOS's EASYROMS tree (finishing_touches.sh:420-
|
||||
# 481, daecf488) and replaced it on 30 December 2025, so an EASYROMS card is
|
||||
# either one. The detection keeps ArkOS's name, as its rules and lists are
|
||||
# keyed. On the device itself the boot splash title tells them apart.
|
||||
_CARD_TITLES = {"ArkOS": "dArkOS or ArkOS"}
|
||||
# The folders whose system was named from a card read on a computer.
|
||||
_FROM_CARD: set[tuple[str, Path]] = set()
|
||||
|
||||
|
||||
def card_title(name: str) -> str:
|
||||
"""The system a card's own files name, as a computer reading it can tell."""
|
||||
return _CARD_TITLES.get(name, name)
|
||||
|
||||
|
||||
def detected_shown(plat: str, path: Path) -> str:
|
||||
"""detected_os as the screen says it: a card read on a computer by the
|
||||
name its files allow."""
|
||||
name = detected_os(plat, path)
|
||||
return card_title(name) if (plat, path) in _FROM_CARD else name
|
||||
|
||||
|
||||
def os_conflict(platforms: list[tuple[str, Path]]) -> list[str]:
|
||||
"""The systems among these when there are two or more: a machine runs one."""
|
||||
names = list(dict.fromkeys(filter(None, (detected_os(n, p) for n, p in platforms))))
|
||||
@@ -2244,7 +2266,7 @@ def _system_lines() -> list[str]:
|
||||
def found_label(plat: str, path: Path) -> str:
|
||||
"""How a detected folder is announced: the system's own name, and the
|
||||
platform whose files it gets when that is another name."""
|
||||
name = detected_os(plat, path)
|
||||
name = detected_shown(plat, path)
|
||||
shown = display_name(plat)
|
||||
moved = "".join(f", {folder}/ at {place}"
|
||||
for folder, place in sorted(_MOVED_FOLDERS.get(path, {}).items())
|
||||
@@ -10229,7 +10251,7 @@ def drive_targets(plat: str) -> list[tuple[str, Path]]:
|
||||
continue
|
||||
if found is not None:
|
||||
below = found[1].relative_to(mount).as_posix() if found[1] != mount else ""
|
||||
what = f"{found[2]} {_card_word(found)}"
|
||||
what = f"{card_title(found[2])} {_card_word(found)}"
|
||||
targets.append((f"{_drive_folder(mount, below)} ({what})", found[1]))
|
||||
else:
|
||||
# A drive its files show to be no card is called a drive, under
|
||||
@@ -10427,7 +10449,7 @@ def drives_left_out(plat: str) -> str:
|
||||
f"--dest {shown_path(mount)})")
|
||||
elif found is not None and found[0] != plat:
|
||||
word = _name_key(found[2]) or found[0]
|
||||
others.append(f"{_mount_name(mount)} ({found[2]} {_card_word(found)}: "
|
||||
others.append(f"{_mount_name(mount)} ({card_title(found[2])} {_card_word(found)}: "
|
||||
f"--platform {word} --dest {shown_path(mount)})")
|
||||
if not others:
|
||||
return ""
|
||||
@@ -18027,7 +18049,7 @@ def _list_card_choice(plat: str, dest: Path) -> CardChoice:
|
||||
found=f"{found[2]} SHARE drive: its BIOS folder is "
|
||||
f"{shown_path(found[1])}")
|
||||
return CardChoice(found[0], found[1],
|
||||
found=f"{found[2]} card: {display_name(found[0])} files, "
|
||||
found=f"{card_title(found[2])} card: {display_name(found[0])} files, "
|
||||
f"in {shown_path(found[1])}")
|
||||
if found and plat in _SHARE_FOLDERS and found[0] != plat and drive_kind(found) != "card":
|
||||
# Another system's drive, never filled beside its own files.
|
||||
@@ -18038,7 +18060,8 @@ def _list_card_choice(plat: str, dest: Path) -> CardChoice:
|
||||
short=f"That is {_a(found[2])} {kind}.", other=found[2])
|
||||
if found and plat and found[0] != plat:
|
||||
shown = shown_path(dest)
|
||||
return CardChoice(plat, dest, f"Note: {shown} is {_a(found[2])} {drive_kind(found)}, "
|
||||
return CardChoice(plat, dest, f"Note: {shown} is {_a(card_title(found[2]))} "
|
||||
f"{drive_kind(found)}, "
|
||||
"which reads "
|
||||
f"the {display_name(found[0])} file list in {shown_path(found[1])}: "
|
||||
f"--platform {_name_key(found[2])} --dest {shown}. The "
|
||||
@@ -19120,7 +19143,7 @@ def _install(args: argparse.Namespace, real_stdout: TextIO) -> None:
|
||||
record_options_kept = _INVOCATION.chosen.get(plat_name)
|
||||
selection = _prompt_custom_selection(
|
||||
plat_name, bare, bare_omitted + unplaced, installed,
|
||||
detected_os(plat_name, bios_path) or display,
|
||||
detected_shown(plat_name, bios_path) or display,
|
||||
args.dry_run, manifest.get("data_directories") or [], bios_path,
|
||||
records_selection(files), given, manifest,
|
||||
bool(target or args.installed_cores or args.declared_only
|
||||
@@ -19521,7 +19544,7 @@ def _install(args: argparse.Namespace, real_stdout: TextIO) -> None:
|
||||
for entry, state in data_states)
|
||||
taken = _RECORD_TAKEN.get(plat_name)
|
||||
print(f"\nInstalling {_plural(coming, 'file')} ({format_size(weight)}) for "
|
||||
f"{detected_os(plat_name, bios_path) or display}"
|
||||
f"{detected_shown(plat_name, bios_path) or display}"
|
||||
+ (", what the games need" if games_applied else "")
|
||||
+ (f", same choice as on {record_day(taken)}" if taken else "") + ".")
|
||||
print(f"BIOS folder: {shown_path(bios_path)}")
|
||||
@@ -22689,11 +22712,11 @@ def _choose(state: TuiState, plat: str, dest: Path, proposed: bool = False) -> l
|
||||
# The card's own files name it, so its folder is known: created as
|
||||
# line mode creates it, and said on the plan, not asked.
|
||||
state.card_note = (f"{dest.name} is created on {_mount_name(root)}, where "
|
||||
f"{detected_os(plat, dest) or display_name(plat)} reads it.")
|
||||
f"{detected_shown(plat, dest) or display_name(plat)} reads it.")
|
||||
return _start_check(state)
|
||||
if proposed and not _exists(dest):
|
||||
# Where no setup is there yet, nothing reads it: said as it is.
|
||||
reads = (f", where {detected_os(plat, dest) or display_name(plat)} reads it"
|
||||
reads = (f", where {detected_shown(plat, dest) or display_name(plat)} reads it"
|
||||
if _is_dir(dest.parent) else ", a folder that does not exist yet")
|
||||
state.card_note = (f"{dest.name} is created in "
|
||||
f"{_short_path(dest.parent, state.home)}{reads}.")
|
||||
@@ -22807,6 +22830,7 @@ def _take_card(state: TuiState, choice: CardChoice, root: Path) -> list[tuple]:
|
||||
if card and card[1] == choice.folder:
|
||||
# Titled as the same card found by itself: "Onion (RetroArch files)".
|
||||
_DETECTED_OS.setdefault((choice.plat, choice.folder), card[2])
|
||||
_FROM_CARD.add((choice.plat, choice.folder))
|
||||
elif state.card_bound:
|
||||
# A card no file names, chosen as ArkOS's: titled ArkOS, not RetroArch.
|
||||
_DETECTED_OS.setdefault((choice.plat, choice.folder), state.card_bound[0])
|
||||
@@ -22902,7 +22926,7 @@ def _tui_card_bound(state: TuiState) -> tuple[str, str] | None:
|
||||
def _card_what(mount: Path) -> str:
|
||||
"""What a mounted card is, as its own files say."""
|
||||
system = card_system(mount)
|
||||
return f"{system[2]} {drive_kind(system)}" if system else "card or drive"
|
||||
return f"{card_title(system[2])} {drive_kind(system)}" if system else "card or drive"
|
||||
|
||||
|
||||
def _browse_rows(folder: Path | None, zips: bool = False,
|
||||
@@ -23435,7 +23459,9 @@ _DEVICES: dict[str, str] = {
|
||||
**{model: "SJGAM" for model in ("SJGAM M21", "SJGAM M22 Pro")},
|
||||
**{model: "" for model in (
|
||||
"R33S", "R35S", "R36H", "R36S", "R36S Plus", "R36S Soysauce", "R40XX Pro Max",
|
||||
"XF40H", "K36", "M17", "BittBoy", "Pocket Go", "Sup M3", "XYC Q8", "Android")},
|
||||
"XF40H", "K36", "M17", "BittBoy", "Pocket Go", "Sup M3", "XYC Q8", "Android",
|
||||
# dArkOS names these two by model alone (v08272026 release notes).
|
||||
"A10 Mini", "Miniloong Pocket 1")},
|
||||
"G350": "BattleXP",
|
||||
"GKD Pixel": "GKD",
|
||||
"GKD Pixel 2": "GKD",
|
||||
@@ -23479,7 +23505,8 @@ _SETUP_DEVICES: dict[str, tuple[str, ...]] = {
|
||||
"ArchR": ("R36S", "R33S", "R36S Soysauce", "Odroid Go Advance", "Odroid Go Super",
|
||||
"RG351V", "RG351M", "GameForce Chi", "MagicX XU10", "RGB10", "RGB10X", "K36"),
|
||||
"CrossMix-OS": ("TrimUI Smart Pro",),
|
||||
"dArkOS": ("Odroid Go Advance", "RGB10", "RG351MP", "G350"),
|
||||
"dArkOS": ("RG353M", "RG353V", "RG503", "RGB30", "RGB20 Pro", "RK2023", "RG351MP", "RGB10",
|
||||
"G350", "Odroid Go Advance", "A10 Mini", "Miniloong Pocket 1"),
|
||||
# JELOS 7b2e116c, packages/hardware/quirks/devices: one folder per device
|
||||
# it was built for, the handhelds here.
|
||||
"JELOS": ("RG351M", "RG351V", "RG353M", "RG353P", "RG353V", "RG353VS", "RG503", "RG552",
|
||||
@@ -26054,7 +26081,7 @@ def _view_plan(state: TuiState, width: int, height: int) -> tuple:
|
||||
if at is not None and at + 1 < len(lines) and "backed up, replaced" in str(lines[at + 1]):
|
||||
lines[at], lines[at + 1] = lines[at + 1], lines[at]
|
||||
# A muOS card gets RetroArch's files: the title says both.
|
||||
system = detected_os(state.platform, state.dest) if state.dest is not None else ""
|
||||
system = detected_shown(state.platform, state.dest) if state.dest is not None else ""
|
||||
name = display_name(state.platform, state.manifest)
|
||||
return (f"{system} ({name} files)" if system and system != name else name,
|
||||
_plan_body(state, width, height, lines, rows),
|
||||
@@ -27832,7 +27859,7 @@ def tui_hits(state: TuiState, lines: list[str]) -> TuiHits:
|
||||
|
||||
|
||||
def _setup_label(plat: str, path: Path) -> str:
|
||||
system = detected_os(plat, path)
|
||||
system = detected_shown(plat, path)
|
||||
name = display_name(plat)
|
||||
return f"{system} ({name} files)" if system and system != name else name
|
||||
|
||||
@@ -27904,6 +27931,7 @@ def found_setups(os_type: str) -> tuple[list[tuple[str, Path, str]], set]:
|
||||
continue
|
||||
if (card[0], card[1]) not in found and card[2] not in here:
|
||||
_DETECTED_OS.setdefault((card[0], card[1]), card[2])
|
||||
_FROM_CARD.add((card[0], card[1]))
|
||||
mounted.add((card[0], card[1]))
|
||||
taken.append((card, mount))
|
||||
systems = [card[2] for card, _mount in taken]
|
||||
@@ -27918,7 +27946,8 @@ def found_setups(os_type: str) -> tuple[list[tuple[str, Path, str]], set]:
|
||||
held = counts.get(mount)
|
||||
what = ("" if held is None else ", no BIOS folder" if held < 0
|
||||
else f", {_plural(held, 'BIOS file')}")
|
||||
setups.append((card[0], card[1], f"{card[2]} {kind} ({_mount_name(mount)}{what})"))
|
||||
setups.append((card[0], card[1],
|
||||
f"{card_title(card[2])} {kind} ({_mount_name(mount)}{what})"))
|
||||
return tell_apart(setups), mounted
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -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="59a5f1990a9d802d47a47da705707856cd79d07675085aa42e3a9b6829a529ce"
|
||||
DEFAULT_INSTALL_SHA256="1354775dff630816cd5cc6344f9e78c94c9fb8e0908909232d4da71d727d1bc9"
|
||||
# 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
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
{
|
||||
"dest": "roms/ports/retrobios/install.py",
|
||||
"repo_path": "install.py",
|
||||
"size": 1350531,
|
||||
"sha256": "59a5f1990a9d802d47a47da705707856cd79d07675085aa42e3a9b6829a529ce",
|
||||
"size": 1351941,
|
||||
"sha256": "1354775dff630816cd5cc6344f9e78c94c9fb8e0908909232d4da71d727d1bc9",
|
||||
"executable": false
|
||||
},
|
||||
{
|
||||
@@ -71,8 +71,8 @@
|
||||
"muos": {
|
||||
"archive": {
|
||||
"dest": "ARCHIVE/RetroBIOS.muxapp",
|
||||
"size": 1404156,
|
||||
"sha256": "ae8997d28ae15269155202788ae68a4601db627fcd6633625205a21d88082b53"
|
||||
"size": 1405566,
|
||||
"sha256": "4734e22bfc6428bb05cf5abcebcaa52aaf55e4c3b36ed291c016ad2ec118fffe"
|
||||
},
|
||||
"members": [
|
||||
{
|
||||
@@ -92,8 +92,8 @@
|
||||
{
|
||||
"name": "RetroBIOS/install.py",
|
||||
"repo_path": "install.py",
|
||||
"size": 1350531,
|
||||
"sha256": "59a5f1990a9d802d47a47da705707856cd79d07675085aa42e3a9b6829a529ce",
|
||||
"size": 1351941,
|
||||
"sha256": "1354775dff630816cd5cc6344f9e78c94c9fb8e0908909232d4da71d727d1bc9",
|
||||
"executable": false
|
||||
},
|
||||
{
|
||||
@@ -166,8 +166,8 @@
|
||||
{
|
||||
"dest": ".config/modules/retrobios/install.py",
|
||||
"repo_path": "install.py",
|
||||
"size": 1350531,
|
||||
"sha256": "59a5f1990a9d802d47a47da705707856cd79d07675085aa42e3a9b6829a529ce",
|
||||
"size": 1351941,
|
||||
"sha256": "1354775dff630816cd5cc6344f9e78c94c9fb8e0908909232d4da71d727d1bc9",
|
||||
"executable": false
|
||||
},
|
||||
{
|
||||
|
||||
+19
-11
@@ -77,7 +77,7 @@ device_groups:
|
||||
logo_owner: Google
|
||||
logo_licence: Android robot, file from simple-icons, CC0-1.0
|
||||
- name: Linux handhelds
|
||||
text: ArkOS, muOS, Onion, spruceOS
|
||||
text: dArkOS, muOS, Onion, spruceOS
|
||||
link: platforms/linux-handhelds.md
|
||||
logo: https://raw.githubusercontent.com/simple-icons/simple-icons/521c96fd04b0ea93034db8715eda5a4de27a58bb/icons/linux.svg
|
||||
logo_owner: Larry Ewing
|
||||
@@ -158,14 +158,17 @@ handheld_guide:
|
||||
title: Linux handhelds
|
||||
uses: retroarch
|
||||
summary: >-
|
||||
ArkOS, muOS, Onion, spruceOS and the other systems below run **RetroArch**, an app
|
||||
dArkOS, muOS, Onion, spruceOS and the other systems below run **RetroArch**, an app
|
||||
with a small emulator for each console. They use its BIOS files.
|
||||
systems:
|
||||
- name: ArkOS
|
||||
# dArkOS replaced ArkOS on 30 December 2025. Its devices are the images of
|
||||
# its latest release, and the Odroid Go Advance its wiki names.
|
||||
- name: dArkOS
|
||||
folder: '`bios` on the **EASYROMS** part of the card'
|
||||
folder_source: https://github.com/christianhaitian/arkos/wiki/ArkOS-Emulators-and-Ports-information
|
||||
devices: [RG353M, RG353V, RG503, RGB30, RK2023, RG351MP, RG351V, R35S, RGB10]
|
||||
devices_source: https://github.com/christianhaitian/arkos/wiki
|
||||
folder_source: https://github.com/christianhaitian/dArkOS/wiki/dArkOS-Emulators-and-Ports-information
|
||||
devices: [RG353M, RG353V, RG503, RGB30, RGB20 Pro, RK2023, RG351MP, RGB10, G350,
|
||||
Odroid Go Advance, A10 Mini, Miniloong Pocket 1]
|
||||
devices_source: https://github.com/christianhaitian/dArkOS/releases/tag/v08272026
|
||||
- name: muOS
|
||||
folder: '`MUOS/bios` on the card'
|
||||
folder_source: https://github.com/MustardOS/internal/blob/main/share/web/tools/bios-checker.html
|
||||
@@ -198,17 +201,22 @@ handheld_guide:
|
||||
devices: [R36S, R33S, R36S Soysauce, Odroid Go Advance, Odroid Go Super, RG351V,
|
||||
RG351M, GameForce Chi, MagicX XU10, RGB10, RGB10X, K36]
|
||||
devices_source: https://github.com/archr-linux/Arch-R
|
||||
# Cards made before the end still run it: the row stays, said as ended.
|
||||
- name: ArkOS
|
||||
ended: no longer updated, replaced by dArkOS
|
||||
ended_source: https://github.com/christianhaitian/arkos/wiki
|
||||
folder: '`bios` on the **EASYROMS** part of the card'
|
||||
folder_source: https://github.com/christianhaitian/arkos/wiki/ArkOS-Emulators-and-Ports-information
|
||||
devices: [RG353M, RG353V, RG503, RGB30, RK2023, RG351MP, RG351V, R35S, RGB10]
|
||||
devices_source: https://github.com/christianhaitian/arkos/wiki
|
||||
- name: CrossMix-OS
|
||||
folder: '`BIOS` at the root of the card'
|
||||
folder_source: https://github.com/cizia64/CrossMix-OS/wiki/Emulators
|
||||
devices: [TrimUI Smart Pro]
|
||||
devices_source: https://github.com/cizia64/CrossMix-OS
|
||||
- name: dArkOS
|
||||
folder: '`bios` on the **EASYROMS** part of the card'
|
||||
folder_source: https://github.com/christianhaitian/dArkOS/wiki/dArkOS-Emulators-and-Ports-information
|
||||
devices: [Odroid Go Advance, RGB10, RG351MP, G350]
|
||||
devices_source: https://github.com/christianhaitian/dArkOS/wiki
|
||||
- name: JELOS
|
||||
ended: no longer updated
|
||||
ended_source: https://github.com/JustEnoughLinuxOS/distribution
|
||||
folder: '`roms/bios` on the games card'
|
||||
folder_source: https://github.com/JustEnoughLinuxOS/distribution/blob/7b2e116ce6996d56e642a0e2a07288c926db926b/packages/emulators/standalone/retroarch/sources/RK3566/retroarch.cfg#L716
|
||||
devices: [RG351M, RG351V, RG353M, RG353P, RG353V, RG353VS, RG503, RG552, R33S, R36S,
|
||||
|
||||
@@ -4510,7 +4510,14 @@ def _handheld_row(system: HandheldSystem) -> str:
|
||||
folder = f"{system.folder} ([source]({system.folder_source}))"
|
||||
if system.linux_only:
|
||||
folder += f". {LINUX_ONLY_HINT}"
|
||||
return f"| {system.name} | {devices} | {folder} |"
|
||||
return f"| {handheld_name(system)} | {devices} | {folder} |"
|
||||
|
||||
|
||||
def handheld_name(system: HandheldSystem) -> str:
|
||||
"""A system's cell: its name, and for one that stopped, that it did and
|
||||
what replaced it, with the project's own page saying so."""
|
||||
return (f"{system.name}, {system.ended} ([source]({system.ended_source}))"
|
||||
if system.ended else system.name)
|
||||
|
||||
|
||||
def generate_handheld_guide(guide: HandheldGuide) -> str:
|
||||
|
||||
+53
-13
@@ -1,15 +1,15 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Record the installer demos shown in the README and on the site, once.
|
||||
|
||||
Each recording is the installer on an ArkOS SD card that holds six games: it
|
||||
Each recording is the installer on a dArkOS SD card that holds six games: it
|
||||
finds the card, plans only the BIOS files those games need, installs them
|
||||
and shows the summary. Two variants, by where the install box says the
|
||||
command runs:
|
||||
|
||||
- default: the one-line command in a terminal on a Linux computer, the card
|
||||
mounted at /media/EASYROMS. The README and every tab but one show it.
|
||||
- handheld: the full-screen interface on ArkOS itself, at the 640x480
|
||||
screen of an R36S, as the Tools menu launcher starts it (ports/shared/
|
||||
- handheld: the full-screen interface on dArkOS itself, at the 640x480
|
||||
screen of an RG351MP, as the Tools menu launcher starts it (ports/shared/
|
||||
tui.txt: install.py --tui, RETROBIOS_PAD=gptokeyb, RETROBIOS_IDLE_EXIT).
|
||||
The keys typed are the ones gptokeyb sends for the buttons
|
||||
(ports/shared/retrobios.gptk: A is Enter), and the bottom line names the
|
||||
@@ -21,10 +21,10 @@ gives the command back with --dest /mnt/e/bios, a path no Windows user sees.
|
||||
|
||||
Everything a recording reads is local and the same on every machine:
|
||||
|
||||
- The card is built under tmp/demo/ (bios/, the folders ArkOS writes on its
|
||||
- The card is built under tmp/demo/ (bios/, the folders dArkOS writes on its
|
||||
games partition, one game per console) on a tmpfs of a card's size, in a
|
||||
mount namespace of this user (unshare, or bwrap for the handheld, whose
|
||||
root holds ArkOS's /home/ark, /opt/system and /roms). /media and /mnt are
|
||||
root holds dArkOS's /home/ark, /opt/system, /roms and its boot splash). /media and /mnt are
|
||||
emptied, so no drive of this machine is shown.
|
||||
- The repository is served on 127.0.0.1 and named with RETROBIOS_BASE_URL:
|
||||
the file lists, install/games/ and the BIOS files are this checkout's.
|
||||
@@ -74,7 +74,16 @@ OUT = ROOT / "docs_assets" / "demo"
|
||||
WORK = ROOT / "tmp" / "demo"
|
||||
FACTS = OUT / "demo.json"
|
||||
CARD_SIZE = "29g"
|
||||
SETUP = "ArkOS"
|
||||
# The system on the device: dArkOS, which replaced ArkOS on 30 December
|
||||
# 2025 (christianhaitian/arkos wiki). A computer reading its card cannot
|
||||
# tell the two apart (install.py card_title), and says both.
|
||||
SETUP = "dArkOS"
|
||||
CARD_SETUP = "dArkOS or ArkOS"
|
||||
# The boot splash title dArkOS is recognised by on the device
|
||||
# (finishing_touches.sh:359-361, install.py _PLYMOUTH_TITLE), dated as its
|
||||
# latest release, v08272026.
|
||||
SPLASH = "/usr/share/plymouth/themes/text.plymouth"
|
||||
SPLASH_TEXT = "[Plymouth Theme]\ntitle=dArkOS (08272026)\n"
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
@@ -250,19 +259,36 @@ def _computer_session(variant: Variant, work: Path, names: list[str]) -> str:
|
||||
)
|
||||
|
||||
|
||||
def _usr_binds() -> str:
|
||||
"""This machine's /usr, entry by entry over a tmpfs, /usr/share too: a
|
||||
bind of the whole of /usr is read-only, and dArkOS's splash file goes in
|
||||
/usr/share/plymouth, which this machine does not have."""
|
||||
def bind(source: Path) -> str:
|
||||
return (f"--symlink {os.readlink(source)} {source}" if source.is_symlink()
|
||||
else f"--ro-bind {source} {source}")
|
||||
usr = Path("/usr")
|
||||
share = usr / "share"
|
||||
words = ["--tmpfs /usr"]
|
||||
words += [bind(entry) for entry in sorted(usr.iterdir()) if entry != share]
|
||||
words += [bind(entry) for entry in sorted(share.iterdir()) if entry.name != "plymouth"]
|
||||
words.append(f'--ro-bind "$RETROBIOS_DEMO_SPLASH" {SPLASH}')
|
||||
return " ".join(words)
|
||||
|
||||
|
||||
def _device_session(names: list[str]) -> str:
|
||||
"""ArkOS's own root, made of this machine's /usr and /etc: the user and
|
||||
the Tools menu folder ArkOS is recognised by, EASYROMS at /roms, and
|
||||
the installer where the Tools menu launcher keeps it."""
|
||||
"""dArkOS's own root, made of this machine's /usr and /etc: the user and
|
||||
the Tools menu folder ArkOS's line keeps, the boot splash title dArkOS
|
||||
is recognised by, EASYROMS at /roms, and the installer where the Tools
|
||||
menu launcher keeps it."""
|
||||
binds = " ".join(
|
||||
f"--symlink usr/{name} /{name}" for name in ("bin", "lib", "lib64", "sbin"))
|
||||
return (
|
||||
'if [ "$#" -eq 0 ]; then\n'
|
||||
f' set -- python3 {ARK_INSTALLER} --tui\n'
|
||||
"fi\n"
|
||||
"exec bwrap --unshare-user --unshare-pid --unshare-ipc --unshare-uts --hostname arkos "
|
||||
"exec bwrap --unshare-user --unshare-pid --unshare-ipc --unshare-uts --hostname darkos "
|
||||
'--uid "$RETROBIOS_DEMO_UID" --gid "$RETROBIOS_DEMO_GID" '
|
||||
f"--ro-bind /usr /usr {binds} --ro-bind /etc /etc --proc /proc --dev /dev "
|
||||
f"{_usr_binds()} {binds} --ro-bind /etc /etc --proc /proc --dev /dev "
|
||||
f"--tmpfs /tmp --dir {ARK_HOME} --dir /opt/inttools --dir {ARK_TOOLS} "
|
||||
f'--ro-bind "$RETROBIOS_DEMO_INSTALLER" {ARK_INSTALLER} '
|
||||
f'--ro-bind "$RETROBIOS_DEMO_CARD" /card --size 31138512896 --tmpfs /roms '
|
||||
@@ -286,6 +312,14 @@ def write_session(work: Path, names: list[str], variant: Variant = VARIANTS["def
|
||||
return session
|
||||
|
||||
|
||||
def _splash(work: Path) -> Path:
|
||||
"""dArkOS's boot splash theme, bound at SPLASH on the device."""
|
||||
path = work / "text.plymouth"
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
path.write_text(SPLASH_TEXT, encoding="utf-8")
|
||||
return path
|
||||
|
||||
|
||||
def session_env(base_url: str, work: Path, card: Path,
|
||||
variant: Variant = VARIANTS["default"]) -> dict[str, str]:
|
||||
"""The variables of the run, and of nothing else: the namespace starts
|
||||
@@ -309,6 +343,7 @@ def session_env(base_url: str, work: Path, card: Path,
|
||||
"RETROBIOS_PAD": "gptokeyb",
|
||||
"RETROBIOS_IDLE_EXIT": "300",
|
||||
"RETROBIOS_DEMO_INSTALLER": str(ROOT / "install.py"),
|
||||
"RETROBIOS_DEMO_SPLASH": str(_splash(work)),
|
||||
}
|
||||
home = work / "home"
|
||||
home.mkdir(parents=True, exist_ok=True)
|
||||
@@ -352,7 +387,12 @@ def describe(variant: str, facts: dict) -> str:
|
||||
f"{facts['setup']}, on a demonstration card. It finds the {facts['games']} games "
|
||||
f"on the card, {plan} The A button chooses, and the bottom line names the buttons.")
|
||||
return (f"Recording of the one-line command in a terminal, on a demonstration card. The "
|
||||
f"installer finds an {facts['setup']} SD card with {facts['games']} games, {plan}")
|
||||
f"installer finds {_article(facts['setup'])} {facts['setup']} SD card with "
|
||||
f"{facts['games']} games, {plan}")
|
||||
|
||||
|
||||
def _article(name: str) -> str:
|
||||
return "an" if name[:1].lower() in "aeiou" else "a"
|
||||
|
||||
|
||||
def measure(session: Path, env: dict[str, str], variant: Variant = VARIANTS["default"]) -> dict:
|
||||
@@ -375,7 +415,7 @@ def measure(session: Path, env: dict[str, str], variant: Variant = VARIANTS["def
|
||||
facts = {
|
||||
"width": size["width"],
|
||||
"height": size["height"],
|
||||
"setup": SETUP,
|
||||
"setup": SETUP if variant.place == "device" else CARD_SETUP,
|
||||
"games": games["games"],
|
||||
"systems": len(games["found"]),
|
||||
"files": check["missing"],
|
||||
|
||||
@@ -100,6 +100,10 @@ class HandheldSystem:
|
||||
devices: tuple[str, ...] = ()
|
||||
devices_source: str = ""
|
||||
linux_only: bool = False
|
||||
# Said when the project stopped, with the project's own page saying so:
|
||||
# ArkOS points its readers to dArkOS.
|
||||
ended: str = ""
|
||||
ended_source: str = ""
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
@@ -135,7 +139,8 @@ _ALSO_KEYS = ("setup", "summary", "uses", "runs_on", "folder")
|
||||
_TILE_KEYS = ("name", "text", "link")
|
||||
_TILE_LOGO_KEYS = ("logo", "logo_owner", "logo_licence")
|
||||
_HANDHELD_KEYS = {"page", "title", "summary", "uses", "systems"}
|
||||
_SYSTEM_KEYS = {"name", "folder", "folder_source", "devices", "devices_source", "linux_only"}
|
||||
_SYSTEM_KEYS = {"name", "folder", "folder_source", "devices", "devices_source", "linux_only",
|
||||
"ended", "ended_source"}
|
||||
_SOURCE = re.compile(r"https://\S+")
|
||||
_TERMINAL_KEYS = ("label", "how", "shell")
|
||||
|
||||
@@ -244,7 +249,8 @@ def _handheld_system(data: object, where: str) -> HandheldSystem:
|
||||
raise GuideError(f"{where}: expected a mapping")
|
||||
_unknown(data, _SYSTEM_KEYS, where)
|
||||
values: dict = {"name": _text(data.get("name"), f"{where}.name")}
|
||||
for value, source in (("folder", "folder_source"), ("devices", "devices_source")):
|
||||
for value, source in (("folder", "folder_source"), ("devices", "devices_source"),
|
||||
("ended", "ended_source")):
|
||||
if (value in data) != (source in data):
|
||||
raise GuideError(f"{where}: {value} and {source} go together, "
|
||||
"a value is written only with the page that states it")
|
||||
|
||||
Vendored
+1
-1
@@ -62,7 +62,7 @@
|
||||
ArchR, SD card R36S, R33S, R36S Soysauce, +9
|
||||
ArkOS, SD card RG353M, RG353V, RG503, RGB30, RK2023, +4
|
||||
CrossMix-OS, SD card TrimUI Smart Pro
|
||||
dArkOS, SD card Odroid Go Advance, RGB10, RG351MP, G350
|
||||
dArkOS, SD card RG353M, RG353V, RG503, RGB30, +8
|
||||
EmuELEC, SD card Odroid Go
|
||||
JELOS, SD card RG351M, RG351V, RG353M, RG353P, +30
|
||||
KNULLI, SD card RG ARC-S, RG28XX, RG34XX, RG35XX, +18
|
||||
|
||||
Vendored
+1
-1
@@ -44,7 +44,7 @@
|
||||
ArchR, SD card R36S, R33S, R36S Soysauce, +9
|
||||
ArkOS, SD card RG353M, RG353V, RG503, RGB30, RK2023, +4
|
||||
CrossMix-OS, SD card TrimUI Smart Pro
|
||||
dArkOS, SD card Odroid Go Advance, RGB10, RG351MP, G350
|
||||
dArkOS, SD card RG353M, RG353V, RG503, RGB30, +8
|
||||
EmuELEC, SD card Odroid Go
|
||||
^[[0;2m 1-19 of 34^[[0m
|
||||
^[[0;1;35mA/Enter^[[0m Choose ^[[0;2mB/Esc^[[0m Back ^[[0;2m/^[[0m Filter ^[[0;2m?^[[0m Help
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@
|
||||
ArchR, SD card R36S, R33S, R36S Soysauce, +9
|
||||
ArkOS, SD card RG353M, RG353V, RG503, RGB30, RK2023, +4
|
||||
CrossMix-OS, SD card TrimUI Smart Pro
|
||||
dArkOS, SD card Odroid Go Advance, RGB10, RG351MP, G350
|
||||
dArkOS, SD card RG353M, RG353V, RG503, RGB30, +8
|
||||
EmuELEC, SD card Odroid Go
|
||||
JELOS, SD card RG351M, RG351V, RG353M, RG353P, +30
|
||||
KNULLI, SD card RG ARC-S, RG28XX, RG34XX, RG35XX, +18
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
ArchR, SD card R36S, R33S, R36S Soysauce, +9
|
||||
ArkOS, SD card RG353M, RG353V, RG503, RGB30, RK2023, +4
|
||||
CrossMix-OS, SD card TrimUI Smart Pro
|
||||
dArkOS, SD card Odroid Go Advance, RGB10, RG351MP, G350
|
||||
dArkOS, SD card RG353M, RG353V, RG503, RGB30, +8
|
||||
EmuELEC, SD card Odroid Go
|
||||
1-19 of 34
|
||||
A/Enter Choose B/Esc Back / Filter ? Help
|
||||
Vendored
+1
-1
@@ -102,7 +102,7 @@
|
||||
ArchR, SD card R36S, R33S, R36S Soysauce, +9
|
||||
ArkOS, SD card RG353M, RG353V, RG503, RGB30, RK2023, +4
|
||||
CrossMix-OS, SD card TrimUI Smart Pro
|
||||
dArkOS, SD card Odroid Go Advance, RGB10, RG351MP, G350
|
||||
dArkOS, SD card RG353M, RG353V, RG503, RGB30, +8
|
||||
EmuELEC, SD card Odroid Go
|
||||
1-19 of 34
|
||||
A Choose B Back
|
||||
|
||||
+1
-1
@@ -102,7 +102,7 @@
|
||||
ArchR, SD card R36S, R33S, R36S Soysauce, +9
|
||||
ArkOS, SD card RG353M, RG353V, RG503, RGB30, RK2023, +4
|
||||
CrossMix-OS, SD card TrimUI Smart Pro
|
||||
dArkOS, SD card Odroid Go Advance, RGB10, RG351MP, G350
|
||||
dArkOS, SD card RG353M, RG353V, RG503, RGB30, +8
|
||||
EmuELEC, SD card Odroid Go
|
||||
1-19 of 34
|
||||
A Choose B Back
|
||||
|
||||
+1
-1
@@ -102,7 +102,7 @@
|
||||
ArchR, SD card R36S, R33S, R36S Soysauce, +9
|
||||
ArkOS, SD card RG353M, RG353V, RG503, RGB30, RK2023, +4
|
||||
CrossMix-OS, SD card TrimUI Smart Pro
|
||||
dArkOS, SD card Odroid Go Advance, RGB10, RG351MP, G350
|
||||
dArkOS, SD card RG353M, RG353V, RG503, RGB30, +8
|
||||
EmuELEC, SD card Odroid Go
|
||||
1-19 of 34
|
||||
A Choose B Back
|
||||
|
||||
Vendored
+1
-1
@@ -102,7 +102,7 @@
|
||||
ArchR, SD card R36S, R33S, R36S Soysauce, +9
|
||||
ArkOS, SD card RG353M, RG353V, RG503, RGB30, RK2023, +4
|
||||
CrossMix-OS, SD card TrimUI Smart Pro
|
||||
dArkOS, SD card Odroid Go Advance, RGB10, RG351MP, G350
|
||||
dArkOS, SD card RG353M, RG353V, RG503, RGB30, +8
|
||||
EmuELEC, SD card Odroid Go
|
||||
1-19 of 34
|
||||
Enter Choose Esc Back / Filter ? Help
|
||||
|
||||
Vendored
+1
-1
@@ -102,7 +102,7 @@
|
||||
ArchR, SD card R36S, R33S, R36S Soysauce, +9
|
||||
ArkOS, SD card RG353M, RG353V, RG503, RGB30, RK2023, +4
|
||||
CrossMix-OS, SD card TrimUI Smart Pro
|
||||
dArkOS, SD card Odroid Go Advance, RGB10, RG351MP, G350
|
||||
dArkOS, SD card RG353M, RG353V, RG503, RGB30, +8
|
||||
EmuELEC, SD card Odroid Go
|
||||
1-19 of 34
|
||||
A Choose R2 Back
|
||||
|
||||
Vendored
+1
-1
@@ -102,7 +102,7 @@
|
||||
ArchR, SD card R36S, R33S, R36S Soysauce, +9
|
||||
ArkOS, SD card RG353M, RG353V, RG503, RGB30, RK2023, +4
|
||||
CrossMix-OS, SD card TrimUI Smart Pro
|
||||
dArkOS, SD card Odroid Go Advance, RGB10, RG351MP, G350
|
||||
dArkOS, SD card RG353M, RG353V, RG503, RGB30, +8
|
||||
EmuELEC, SD card Odroid Go
|
||||
1-19 of 34
|
||||
Start Choose B Back
|
||||
|
||||
+11
-10
@@ -9554,7 +9554,7 @@ class OneDeviceRegistry(unittest.TestCase):
|
||||
self.assertEqual([name for name in devices if name not in install._DEVICES], [])
|
||||
|
||||
def test_every_spelling_finds_every_system_that_runs_it(self):
|
||||
rk2023 = {"ArkOS", "KOLOS", "JELOS", "rocknix"}
|
||||
rk2023 = {"dArkOS", "ArkOS", "KOLOS", "JELOS", "rocknix"}
|
||||
cubexx = {"muOS", "knulli", "rocknix", "minui"}
|
||||
flip2 = {"knulli", "rocknix"}
|
||||
for typed, systems in (("Powkiddy RK2023", rk2023), ("RK2023", rk2023),
|
||||
@@ -9583,7 +9583,7 @@ class OneDeviceRegistry(unittest.TestCase):
|
||||
contextlib.redirect_stdout(out), self.assertRaises(SystemExit):
|
||||
install._choose_platform("Which?", "retroarch")
|
||||
text = out.getvalue()
|
||||
self.assertIn("4 setups run on 'Powkiddy RK2023':", text)
|
||||
self.assertIn("5 setups run on 'Powkiddy RK2023':", text)
|
||||
# Enter after the matches takes none, and 0 and 35 are numbers.
|
||||
self.assertEqual(text.count("Type a number from 1 to 34"), 3)
|
||||
self.assertNotIn("run on '0'", text)
|
||||
@@ -13019,7 +13019,7 @@ class ChoiceStateInBothModes(unittest.TestCase):
|
||||
self.assertEqual(state.dest, card / "bios")
|
||||
text = self.screen(listed(state))
|
||||
# Named on the setups, its plan one Enter away.
|
||||
self.assertIn(f"> ArkOS SD card ({name}", text)
|
||||
self.assertIn(f"> dArkOS or ArkOS SD card ({name}", text)
|
||||
self.assertNotIn("Nothing was found here", text)
|
||||
install.tui_update(state, Key("enter"))
|
||||
self.assertEqual(state.dest, card / "bios")
|
||||
@@ -13295,10 +13295,11 @@ class ChoiceStateInBothModes(unittest.TestCase):
|
||||
card = self.easyroms()
|
||||
text, asked = self.line_run(_args(manifest=self.game_listing(), dry_run=True,
|
||||
declared_only=False), [""], mounts=[card])
|
||||
# Found as the screen finds it, under Enter.
|
||||
self.assertIn(f"Found ArkOS at {card / 'bios'} (RetroArch files)", text)
|
||||
# Found as the screen finds it, under Enter. dArkOS writes the same
|
||||
# EASYROMS tree, so a computer cannot tell the two apart.
|
||||
self.assertIn(f"Found dArkOS or ArkOS at {card / 'bios'} (RetroArch files)", text)
|
||||
self.assertNotIn("Nothing was found here", text)
|
||||
self.assertIn("Enter for ArkOS SD card (EASYROMS)", asked[0])
|
||||
self.assertIn("Enter for dArkOS or ArkOS SD card (EASYROMS)", asked[0])
|
||||
self.assertIn(f"BIOS folder: {card / 'bios'}", text)
|
||||
|
||||
|
||||
@@ -13423,14 +13424,14 @@ class DriveIsACardByItsFiles(unittest.TestCase):
|
||||
state = self.first_screen(mounts)
|
||||
# The card is the setup found, under Enter.
|
||||
text = self.screen(state)
|
||||
self.assertIn("> ArkOS SD card (EASYROMS", text)
|
||||
self.assertIn("> dArkOS or ArkOS SD card (EASYROMS", text)
|
||||
with mock.patch.object(install, "_mounted_cards", return_value=mounts), \
|
||||
mock.patch.object(install, "_mount_points", return_value=frozenset()):
|
||||
install.tui_update(state, Key("enter"))
|
||||
self.assertEqual(state.dest, card / "bios")
|
||||
text, asked = self.line_run(_args(manifest=self.game_listing(), dry_run=True,
|
||||
declared_only=False), [""], mounts=mounts)
|
||||
self.assertIn("Enter for ArkOS SD card (EASYROMS)", asked[0])
|
||||
self.assertIn("Enter for dArkOS or ArkOS SD card (EASYROMS)", asked[0])
|
||||
self.assertIn(f"BIOS folder: {card / 'bios'}", text)
|
||||
|
||||
def test_two_cards_are_spoken_of_in_the_plural(self):
|
||||
@@ -13446,8 +13447,8 @@ class DriveIsACardByItsFiles(unittest.TestCase):
|
||||
self.assertIn("ArkOS SD card (ROMS2", text)
|
||||
text, asked = self.line_run(_args(manifest=self.game_listing(), dry_run=True,
|
||||
declared_only=False), [], mounts=mounts)
|
||||
self.assertIn("1) ArkOS SD card (EASYROMS", text)
|
||||
self.assertIn("2) ArkOS SD card (ROMS2", text)
|
||||
self.assertIn("1) dArkOS or ArkOS SD card (EASYROMS", text)
|
||||
self.assertIn("2) dArkOS or ArkOS SD card (ROMS2", text)
|
||||
self.assertNotIn("in the reader", text)
|
||||
|
||||
def test_a_fixed_partition_is_told_from_a_card(self):
|
||||
|
||||
@@ -388,7 +388,19 @@ class HandheldWayIn(unittest.TestCase):
|
||||
text = _page(GUIDE.path)
|
||||
for system in GUIDE.systems:
|
||||
with self.subTest(system=system.name):
|
||||
self.assertIn(f"| {system.name} |", text)
|
||||
self.assertIn(f"| {generate_site.handheld_name(system)} |", text)
|
||||
|
||||
def test_a_system_that_stopped_says_so_with_its_source(self):
|
||||
"""ArkOS was archived on 30 December 2025 and points to dArkOS: the
|
||||
guide listed it first, as a system to install."""
|
||||
systems = {s.name: s for s in GUIDE.systems}
|
||||
self.assertEqual(GUIDE.systems[0].name, "dArkOS")
|
||||
self.assertIn("replaced by dArkOS", systems["ArkOS"].ended)
|
||||
self.assertTrue(systems["ArkOS"].ended_source.startswith("https://github.com/"))
|
||||
self.assertTrue(systems["JELOS"].ended)
|
||||
self.assertNotIn("ArkOS,", GUIDE.summary.replace("dArkOS,", ""))
|
||||
with self.assertRaises(siteguides.GuideError):
|
||||
siteguides._handheld_system({"name": "X", "ended": "no longer updated"}, "test")
|
||||
|
||||
def test_every_folder_and_device_list_is_cited(self):
|
||||
for system in GUIDE.systems:
|
||||
@@ -754,7 +766,9 @@ class EveryHandheldRowSaysWhere(unittest.TestCase):
|
||||
def test_a_folder_only_linux_reads_says_what_to_do(self):
|
||||
text = _plain_page(HANDHELDS.path)
|
||||
for system in HANDHELDS.systems:
|
||||
row = next(line for line in text.splitlines() if line.startswith(f"| {system.name} |"))
|
||||
row = next(line for line in text.splitlines()
|
||||
if line.startswith(f"| {system.name} |")
|
||||
or line.startswith(f"| {system.name}, "))
|
||||
with self.subTest(system=system.name):
|
||||
self.assertEqual(generate_site.LINUX_ONLY_HINT in row, system.linux_only)
|
||||
self.assertTrue(any(s.linux_only for s in HANDHELDS.systems if s.name == "ArchR"))
|
||||
|
||||
Reference in new issue
Block a user