From f51c3a3fc75acaedeb0921ab84c22684592abfc3 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Tue, 6 Oct 2026 05:06:15 +0200 Subject: [PATCH] fix: point the retrobat guide at install.ps1 --- scripts/packreadme.py | 4 ++-- tests/test_pack_readme.py | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/scripts/packreadme.py b/scripts/packreadme.py index 012ea705..6db6c8e1 100644 --- a/scripts/packreadme.py +++ b/scripts/packreadme.py @@ -140,8 +140,8 @@ def _build_readme( "INSTALLATION GUIDE (Windows)\n\n" " Option A: Automatic (recommended)\n" " ---------------------------------\n" - " Download and run install.bat from:\n" - " https://github.com/Abdess/retrobios/releases\n\n" + " Open PowerShell and run:\n\n" + " irm https://raw.githubusercontent.com/Abdess/retrobios/main/install.ps1 | iex\n\n" " Option B: Manual\n" " ----------------\n" " 1. Open your RetroBat installation folder\n" diff --git a/tests/test_pack_readme.py b/tests/test_pack_readme.py index f8313b70..72809391 100644 --- a/tests/test_pack_readme.py +++ b/tests/test_pack_readme.py @@ -46,5 +46,15 @@ class GuidesPointAtTheReadPath(unittest.TestCase): ) +class GuidesNameShippedInstallers(unittest.TestCase): + def test_every_installer_named_exists(self): + """RetroBat's guide sent users to an install.bat no release carries.""" + import re + + source = (REPO_ROOT / "scripts" / "packreadme.py").read_text(encoding="utf-8") + for name in set(re.findall(r"install\.(?:bat|ps1|sh|py)", source)): + with self.subTest(installer=name): + self.assertTrue((REPO_ROOT / name).is_file()) + if __name__ == "__main__": unittest.main()