Commit Graph
461 Commits
Author SHA1 Message Date
Abdessamad Derraz 3e732fd57e chore: merge origin main into the lint work 2026-11-17 07:09:55 +01:00
Abdessamad Derraz 4eacb6ff39 chore: lint scripts and tests with ruff
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.
2026-11-17 07:07:48 +01:00
Abdessamad Derraz aada55e656 chore: regenerate data for the amiga files 2026-11-13 15:59:33 +01:00
Abdessamad Derraz d6c61e9959 fix: prove three launcher reads from code
RetroDECK presets LRPS2's pcsx2_bios option to scph10000.bin: LRPS2
now names that label, the SCPH-10000 v1.00 image (ROMVER
0100JC20000117). melonDS 1.1, the Flathub build EmuDeck installs,
imports melonDS.ini when melonDS.toml is absent, which proves the
EmuDeck record. ares lists the settings.bml keys of its MSX2, PC
Engine CD and SuperGrafx CD firmware.
2026-11-13 06:40:13 +01:00
Abdessamad Derraz 9c2d931b12 chore: drop 241 byte-identical bios copies
Each removed file has the same bytes as another file the collection
keeps. Every platform and profile entry resolves to the same content
before and after, and every installer list gives the same sha1 to every
destination. Copies that alone carry a hashless name, sit in a tree
addressed by path (game data, directory entries), or would leave a
system folder empty are kept. Three identity exemptions no longer apply.
2026-11-13 04:30:05 +01:00
Abdessamad Derraz f5d44dd66a chore: write manifests with the ps2 labels 2026-11-12 21:36:17 +01:00
Abdessamad Derraz 865f56b539 chore: write manifests and games index again
The manifests, the games-on-card fallback lists and the README follow
the database with the six Amiga Forever ROMs and the 73 openMSX ROMs.
2026-11-12 16:53:35 +01:00
Abdessamad Derraz 68cd495fdc feat: add six Amiga ROMs from Amiga Forever
Kickstart 1.0 (A1000, NTSC), 1.3 (A3000, SK), 1.4 and 2.04 (A3000),
3.2 (Walker) and The Diagnostic 2.0 (Logica), each one an entry of
Amiberry's ROM table (rommgr.cpp) the collection lacked. Read from the
Amiga Forever 11.2.4 Plus installer: its ROMs are XORed with a 1,426-byte
key of their own, recovered from the held Kickstart 3.1 (A1200), and each
file matches the sha1 Amiberry declares.
2026-11-12 16:29:58 +01:00
Abdessamad Derraz 672b88d162 chore: write native exports and manifests again
The committed exports had drifted from what export_native writes after
the rescrapes of 2026-11-09, and the manifests are regenerated with the
database that holds the nms8245 disk rom.
2026-11-12 15:36:50 +01:00
Abdessamad Derraz 750a6eb8e6 chore: merge the expert installer options 2026-11-12 11:05:07 +01:00
Abdessamad Derraz 7d6efc3522 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.
2026-11-12 07:28:22 +01:00
Abdessamad Derraz 180aca1c63 fix: close the expert option review findings
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.
2026-11-12 07:12:20 +01:00
Abdessamad Derraz 07dd93604d chore: merge origin/main
Takes --remove --misplaced. The pins are written again for the merged
install.py, the launcher index and installer doc regenerated.
2026-11-12 04:42:27 +01:00
Abdessamad Derraz 5b023493b2 chore: move standalone layouts out of the lists
From two equal runs of generate_pack.py --all --manifest with every
release asset on disk. Files and omissions are unchanged.
2026-11-12 04:41:23 +01:00
Abdessamad Derraz 9cb9fec49e refactor: keep standalone layouts in a file apart
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.
2026-11-12 04:41:22 +01:00
Abdessamad Derraz 058c3a1152 feat: remove misplaced copies of installed files
--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.
2026-11-12 04:32:56 +01:00
Abdessamad Derraz 03f80eb570 chore: add slot and truth fields to install lists
Taken from two equal runs of generate_pack.py --all --manifest with
every release asset on disk. Files and omissions are unchanged.
2026-11-12 04:04:10 +01:00
Abdessamad Derraz 2060673b44 feat: add expert narrowing to the installer
--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.
2026-11-12 04:03:46 +01:00
Abdessamad Derraz 106d13add1 chore: merge the termux folder fix 2026-11-12 00:39:08 +01:00
Abdessamad Derraz 06aeace091 fix: skip emulator folders closed to this user
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.
2026-11-12 00:38:30 +01:00
Abdessamad Derraz 26f11bbb3f docs: say what a pack would hold
"would go in", said three times about --dry-run, put the installer page above which-pack for "where do bios files go" in the search check.
2026-11-12 00:38:00 +01:00
Abdessamad Derraz 4e50d4edf8 chore: merge origin/main 2026-11-11 23:03:14 +01:00
Abdessamad Derraz 0441237dd6 fix: let the platforms' neo geo reach its cores
Platforms file their one Neo Geo system as snk-neogeo (RetroDECK as
neogeo), and once FB Alpha 2012 used snk-neogeo-mvs no profile met it.
Both spellings are now aliases of snk-neogeo-mvs: every Neo Geo core
keeps the system, and a --target board with FBNeo or MAME keeps its
files. Manifests and games index regenerated.
2026-11-11 22:02:16 +01:00
Abdessamad Derraz ac71be8644 chore: merge the site test fix 2026-11-11 21:31:22 +01:00
Abdessamad Derraz 9691b55ef4 fix: name the neo geo sets by their canonical ids
ares filed aes.zip and neogeo.zip under neo-geo, an id no other profile
uses: the site found no section for the sets, and nine neogeo.zip cards
sat on the Arcade pages. FB Alpha 2012 wrote neogeo, the only profiles a
platform's snk-neogeo matched: with --target, a board without them lost
the platform's Neo Geo files whatever FBNeo or MAME it carries. Both now
use snk-neogeo-aes and snk-neogeo-mvs. Manifests and games index regenerated.
2026-11-11 21:30:55 +01:00
Abdessamad Derraz 733b059712 chore: merge origin/main
# Conflicts:
#	install.ps1
#	install.sh
#	install/launchers/index.json
#	wiki/testing-guide.md
2026-11-11 19:35:01 +01:00
Abdessamad Derraz ba2df77698 fix: swap a pack in whole and name its platform
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.
2026-11-11 18:06:16 +01:00
Abdessamad Derraz 475b6acf83 fix: keep case variants and types in a pack run 2026-11-11 17:41:53 +01:00
Abdessamad Derraz c8bbf900a6 chore: merge the install.py spacing from main 2026-11-11 17:39:01 +01:00
Abdessamad Derraz 209dc1b662 chore: pin the installer and write the pack event 2026-11-11 17:22:51 +01:00
Abdessamad Derraz 85bcfca125 chore: keep two blank lines before _is_link
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.
2026-11-11 17:08:13 +01:00
Abdessamad Derraz a004e56220 chore: regenerate data for the release 2026-11-11 16:47:26 +01:00
Abdessamad Derraz f218998f59 chore: merge the removal and backups from main 2026-11-11 15:35:44 +01:00
Abdessamad Derraz a51f3d7f43 fix: name the removal options on the site
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.
2026-11-11 15:34:48 +01:00
Abdessamad Derraz 3bebf75da5 chore: merge the last MAME fixes 2026-11-11 15:23:57 +01:00
Abdessamad Derraz e9329e411d chore: regenerate the games index
install/games/ was last written before 7035da115 and 801af113b changed
the rom folders files (offers, searched_by) and before this branch's
profile and collection changes: test_published_files_are_current failed.
generate_games_index rewrites 37 files, setups and fallbacks. The
arcade indexes do not change, clone parents staying out of them.
2026-11-11 15:21:53 +01:00
Abdessamad Derraz 4bb76b67c2 fix: keep files a removal or restore would lose
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.
2026-11-11 14:06:57 +01:00
Abdessamad Derraz 7c5ad8366b chore: regenerate the data for the release 2026-11-11 13:55:41 +01:00
Abdessamad Derraz 05f3f5c702 feat: honour the boards a folder offers a core on
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.
2026-11-11 13:46:57 +01:00
Abdessamad Derraz e38764627b feat: remove installed files and list backups
--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.
2026-11-11 13:20:42 +01:00
Abdessamad Derraz f72a5b9e9b chore: merge the installer screens from main 2026-11-11 12:10:37 +01:00
Abdessamad Derraz a8cfd20f49 fix: place MAME 2016 and older sets by the game
MAME 2000, 2003, 2003-Plus, 2009, 2010, 2014, 2015, 2016 and UME 2015
search the folder of the loaded game for their sets and never the system
folder: osd_get_path gives FILETYPE_ROM the content path (mame2003 and
mame2003-plus src/fileio.c:217-220), -rompath is MgamePath (mame2009
retromain.c:432-434, mame2014 retromain.c:1851-1856, mame2015 and
ume2015 retromain.c:1980-2042, mame2016 retromain.cpp:1364-1402), ROMs
open with libretro_content_directory (mame2010 romload.c:667-685) or
IMAMEBASEPATH (mame2000 libretro.c:1044-1053, 1247). Their 421 sets are
load_from: content_dir. Samples, artwork, cheats and the data files read
from the system folder keep their paths.

A set read beside the game goes to the roms folder of each system the
platform launches the core for: libretro_systems, the default core of a
rom folder, the cores a system offers under its own name, the systems a
RetroPie package registers (the lr-mess packages build SUBTARGET=mess,
lr-mess2016.sh:31, and read none of these arcade sets). A roms root in
the install tree takes a plain dest, as a standalone entry placed there.
A platform with no folder per system, or none it can place (RetroArch,
Lakka, RetroBat, EmuDeck, MyMinUI), names the set as read outside the
BIOS folder. EmulatorJS writes the BIOS and the game to one folder
(emulator.js:845, 990, 1054): RomM keeps its firmware entries. Game data
read beside the content is left to the game.

Manifests: roms folders gain 408 files on RetroDECK, 182 on RetroPie,
179 on Recalbox, 140 on AmberELEC, 134 on KNULLI, 52 on Batocera and
ROCKNIX, 39 on EmuELEC. BIOS root copies no other core reads leave: 80
on RetroArch, Lakka and ROCKNIX, 61 on EmuELEC, 60 on Recalbox, 59 on
AmberELEC, 57 on RetroPie, 26 on MyMinUI, 20 on RetroDECK, 19 on
Batocera and EmuDeck, 16 on KNULLI, 13 on RetroBat. verify --all keeps
its severity and status counts.
2026-11-11 11:11:24 +01:00
Abdessamad Derraz a285be7930 fix: hold the device screen choices
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.
2026-11-11 11:09:53 +01:00
Abdessamad Derraz b9481977e1 feat: add device and emulator screens
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.
2026-11-11 10:44:02 +01:00
Abdessamad Derraz 5f3f4cff38 fix: check the install record before using it
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.
2026-11-10 12:17:08 +01:00
Abdessamad Derraz 8f2018e7c2 feat: remember the install and open on the plan
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.
2026-11-10 11:46:57 +01:00
Abdessamad Derraz ec8f9eb566 chore: merge origin/main 2026-11-10 10:11:13 +01:00
Abdessamad Derraz fbcb6c7352 fix: count only the pack's own files in pack_files
An entry the installer places in the roms, emulators or configs folder is in the install list but not in the ZIP, which is unzipped into the BIOS folder. pack_files and pack_size counted them: release_record.py refused Batocera (19196 against 19125 in the archive) and RetroBat (9200 against 8882). Manifests regenerated twice, identical.
2026-11-10 09:54:13 +01:00
Abdessamad Derraz 498fa5cb11 fix: set the raw error flag in one place
The test called main and left --offline and the WSL probe behind for the tests after it. say_raw_errors holds the rule, and the test calls it alone.
2026-11-10 09:10:34 +01:00
Abdessamad Derraz e8e2215a49 fix: clear the raw error flag on each run
--verbose set it and no run cleared it, so a later run in the same process ended its clock message with the raw SSL text. Also: --target named again in its refusal, three names mypy read as another type, a semicolon and a tooling file named in test comments.
2026-11-10 08:43:20 +01:00