The split had pushed each helper down into the lowest module using it.
Names now sit with the concern they belong to (68 modules, 45 before),
each with a one-line docstring saying it, and the import graph stays
acyclic. Statement source and comments moved unchanged: every top-level
statement of install.py keeps an identical ast.dump.
install.py held 31,575 lines and 1,370 definitions in one module. Its
source is now installer/, 45 modules by concern, each importing from the
others what it uses, so ruff and mypy read every module on its own.
scripts/build_installer.py joins them back into install.py in import
order, with one block of standard library imports and the zlib and
unicodedata guard. It refuses an import from outside the standard
library, a name two modules define, an import cycle, a renamed import
and an import-time read of a name from a later module. install.py stays
one stdlib-only file for the bootstraps, the launchers and PyPI.
The split was written by a script, statement by statement: every
top-level statement of the old file is in the new one with the same AST.
Two tests that located code by its neighbour now read it by name.
TuiState.__init__, tui_blocker, tui_rows, _activate, _option, _tui_key and tui_mouse split by screen and stage; TuiRow values narrowed where the action fixes their type.
main runs its option checks and its dispatch in named stages. The card
rules carry their BIOS folder as a str, the menu's drive number no longer
shares its name with the folder index, and SystemDrive is read under the
name Windows keys it by.
plan_games, _plan_game_folder, _swap_in and _write_verified read by stage, _fill_pack takes its pack as one tuple, check_lines its folder reads as CheckHeld. LocalCopy, PackPart and Unreadable become plain classes: their index and count fields shadowed the tuple methods. Openers of ZIP members are typed IO[bytes].
Stage helpers for the standalone folder install and copies, the line
menu's Enter line, keys and answers, the games document reads and the
game reader; type the menu choice, the card rows and the byte order.
pyproject.toml now carries the ruff rule set: pyflakes, the B rules,
simplify, perf, pyupgrade, complexity and size limits. This commit
applies the fixes that change no behavior and the small defects the
first run named:
- tests/test_install.py used argparse without importing it
- three loops rebound the outer `profile` with each layout
(packextras, slots, verify); the loop variable is now `layout`
- profile_sync loops shadowed dataclasses.field
- generate_readme and packextras computed values nothing read
- stale noqa markers for rules the project does not enforce
Complexity, size and the remaining findings are handled next.
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.
Change offers Standalone version of it only without a region, core or
system choice, and a later such choice turns it off in one line.
--find refuses --pack, --add-app, --standalone-copies, --romm-firmware
and --from. Every --find --json match carries every key, null where
absent, and a hash with no one file ends on code 4. A slot claim that
is no object, and a truth-only omission, are checked at the boundary.
truth_files: null reads as no list. Each name a group gives a file is
looked up apart (slot also), and --installed-cores ranks a slot by the
cores found.
The layouts every list carried grew the download of each run by up
to 30% for an option few use. They now live in
install/standalone/<platform>.json, written by the same --manifest run
and fetched only by a run given --standalone, beside --manifest first.
The list names the builds (standalone_builds). A missing, unreachable
or invalid file stops --standalone on one line, code 1.
--remove --misplaced deletes a copy only under the name of a file the
installer placed and still holds: beside it in another case, or at the
top of a folder the list fills for a file below. Renamed copies, game
data, links, second names and folders without an installed file stay.
Another setup whose list cannot be read stops the removal.
--one-per-slot, --emulator NAME --standalone, --source truth and
--find HASH (with --json), each replaying the pack builder's option of
the same name from the list. Change offers One BIOS per console and
region and Standalone version of it. A combination the builder refuses,
or a list without the fields, is refused. Parity against the real packs
of every registered platform in tests/test_install_expert.py.
Termux on Android 11 cannot look into another app's Android/data
folder. The standalone-copy probes called Path.is_dir() there, and
PermissionError stopped the run after the install. Closed folders now
count as absent, and --standalone-copies names them as skipped.
The earlier pack of the name is set aside while the new files take their names and put back if one cannot, so the folder never holds a mix of parts. A scratch file that cannot be deleted is named, and a cleanup that fails keeps a written pack at exit 0. Only a file whose marker or manifest names the pack is removed, each one said. Each member is deflated at level 9 and the ZIP is read back with testzip. The space check counts the largest data tree archive. A pack name that spells another platform is refused, and the reader trusts the platform the manifest names.
--pack downloads the narrowed choice into a pack ZIP laid out as --from-pack reads it, the list narrowed to the choice inside. Every member is checked against its SHA-1 before the ZIP is closed, and a failure leaves no file behind. --split writes parts that are each a whole ZIP, and a pack past 4 GB on a FAT32 drive is split by itself. More on the plan holds Make a pack, its plan and its result. Event pack.
e38764627 left three blank lines after the record function, and
test_install_tui's two-blank-lines check failed Validation. The pins of
install.sh and install.ps1 and the launcher index follow the new hash.
The options glance gains a Remove and put back group, the testing guide names test_install_removal, install.py declares _REPARSE_POINT once, and the type baseline drops three errors this change resolved.
Restore moves a file in place with other bytes into a new dated backup, the installer's own recorded copy aside. Removal hashes each file again just before it goes and keeps one changed since the plan, keeps the record entries of files that stayed, touches the record only after the yes, and stops on a BIOS folder that is not there. A Windows junction counts as a link in the planner, the backup walk and --delete-backup. A place both the platform's list and a core name is never a core's alone, and two names of one file on a folding drive are planned once. A restore into a moved folder says the record was not updated.
ROCKNIX writes some add_emu_core calls under a case on DEVICE, and the
rom folders file keeps that branch as the offer's `when` (uae4arm for
amiga, emulators/package.mk:188). A board's core list names such a core
when another folder offers it there, so --target placed its files in a
folder the board does not offer it for.
offer_boards() reads `when` and board_defaults against the platform's
targets, aliases included. A board build (generate_pack and generate
--manifest with --target, verify --target) carries the board in the
config (TARGET_KEY), and content_folder_tags leaves out the pairs the
board is not offered. A manifest for every board lists in
offered_boards each profile placed in such a folder, and install.py
--target drops its files there on the other boards.
Manifests: no file moves. The cores ROCKNIX offers under a device case
read no file beside the game today, so no manifest carries
offered_boards yet.
--remove deletes for good, or moves into a backup with --backup, only what the install record proves the installer placed: unchanged bytes, a regular file below the BIOS folder reached through no link, a SHA-1 the list still serves. Shared, changed, hand-added and unservable files stay and are named. --backups lists, --delete-backup deletes, --restore now updates the record. The full screen gains More, Remove files, the removal plan, Backups and their confirms. Events removal_plan, removed, restored and backup.
Every board always sets --every-board. A board list that failed is fetched again, once and with the list's timeout. A pack is read only once the screen takes it, and a ZIP that is no pack is closed. Another setup drops the board and emulators, and names a new list lacks are left out and said. PgUp and Home never rest on a heading. Without the internet is refused for a target whose board list is not held.
Change replaces Options and groups every option by intent. Device chooses --target or --every-board, the board read on the device or named by the card first and chosen. Emulators ticks --emulator. From a pack and Without the internet are rows of their own. Parity tests install the screen's argv and the flag's into two folders and compare dest and sha1.
A record's choice holds only the options of the choice and their
values, or the whole record is said once and ignored: it no longer reaches
the commands printed for the user. A recorded games folder is kept only
under the folder that holds the BIOS folder. A recorded option the list
can no longer apply is left out in one line, never refused. The record is
read only when it is a regular file of at most 16 MiB, its day is unknown
when no clock can show it, one a newer installer wrote is left as it is,
and a setup that cannot be used is dropped alone. The plan opened on the
one setup found keeps that screen's notes under Details.
An install writes retrobios-backup/<folder>.install.json beside the BIOS
folder: each file it placed with its sha1, size and source, and the choice
it made. The next run for the same setup and folder takes that choice when
the command line chose nothing, in line mode and on the full screen, and
says so. A record that cannot be read is said once and ignored. A record
event reports it.
With one setup found, the full screen opens on its plan, Change where one
row away. The plan's Install row says the size its headline says.