feat: serve the one-line installer from the site

The site serves install.sh at /retrobios/i and install.ps1 at
/retrobios/i.ps1. generate_site.py writes both copies with the
installer address set to install.py at the commit the site is built
from (GITHUB_SHA in CI, HEAD locally), so the pinned SHA-256 and the
downloaded installer always come from one commit, including while a
deploy is still running.

Every command a user copies names the short address. The raw form
stays on the installer page as the fallback. Deploy Site now runs on
changes to install.sh and install.ps1. The install box weight keeps
the address length its ratio was fitted on, so no console page moves.
This commit is contained in:
Abdessamad Derraz committed 2026-10-28 05:47:38 +01:00
1 parent 7c3e6ced09
commit 9e6af0aa6b
37 files changed
+486 -110

No files matched your search

+3 -5
View File
@@ -9930,14 +9930,12 @@ class TheAndroidResultReadsWhole(unittest.TestCase):
self.assertIn("--restore", words)
self.assertTrue(all(not word.endswith("/") for word in words), words)
state = _installed_state(Path("/sdcard/RetroArch/system"))
command = install._styled("curl -fsSL https://raw.githubusercontent.com/Abdess/"
"retrobios/main/install.sh | sh -s -- --restore "
command = install._styled(f"curl -fsSL {install.BOOTSTRAP_URL} | sh -s -- --restore "
"'/storage/emulated/0/a b/20261027-223524'", "command")
state.stack.append("result")
pieces = install._text_lines([command], 38, whole=True)
joined = [str(piece).strip() for piece in pieces if piece.style != "cont"]
self.assertIn("https://raw.githubusercontent.com/Abdess/retrobios/main/install.sh",
joined)
self.assertIn(install.BOOTSTRAP_URL, joined)
self.assertIn("'/storage/emulated/0/a b/20261027-223524'", joined)
def test_a_long_line_folds_in_the_terminal(self):
@@ -10770,7 +10768,7 @@ class AuditNineteenAndTwelve(_CardFixtures, unittest.TestCase):
lines = drawn(state, cols, 30)
self.assertFalse(install.tui_wants_mouse(state, lines))
if bootstrap:
url = "https://raw.githubusercontent.com/Abdess/retrobios/main/install.sh"
url = install.BOOTSTRAP_URL
words = [word for line in lines for word in str(line).split()]
self.assertIn(url, words)