From 2f92026ec648d47c25fea6fc8f354fbc04f4d714 Mon Sep 17 00:00:00 2001 From: salmonik Date: Fri, 30 Oct 2026 00:07:24 +0100 Subject: strip the download page to plain HTML: no CSS, sha256sum-format checksums --- web/README.md | 5 +- web/index.php | 309 ++++++++++------------------------------------------------ 2 files changed, 53 insertions(+), 261 deletions(-) diff --git a/web/README.md b/web/README.md index 3c6ee08..5434e28 100644 --- a/web/README.md +++ b/web/README.md @@ -2,7 +2,8 @@ `index.php` scans `bin/client` and `bin/server` on every request and renders whatever builds it finds, with version, size and SHA-256. No database, no -JavaScript, no dependencies. PHP 8.0+. +JavaScript, no CSS, no dependencies. The page is plain browser defaults: +black text, blue links, monospace checksums. PHP 8.0+. ## Layout @@ -62,3 +63,5 @@ Then open . handful of builds; add an mtime-keyed cache if the directory grows. - The page lists every build it finds, newest version first, so old releases stay downloadable until you remove them from `bin/`. +- The checksum block is in `sha256sum` format, so visitors can save it as + `SHA256SUMS` and run `sha256sum -c SHA256SUMS`. diff --git a/web/index.php b/web/index.php index cd77dad..361fdcf 100644 --- a/web/index.php +++ b/web/index.php @@ -164,274 +164,63 @@ foreach (KINDS as $kind => $meta) { Download · zagan.bet - - - + -
- -
-

zagan.bet

-

Terminal betting. Slots, roulette, blackjack and crash.

- 0): ?> -

Builds published UTC

- -
-
- $meta): ?> -
-

-

- - -

Nothing published yet.

- -
    - -
  • -
    -

    - v -
    -

    - - · - -

    -

    - Download -
  • - -
- -
- - - - -
-

Checksums

-

SHA-256 of every published file.

-
- - - - - - - - - - - - - - - - - - - -
FileVersionSizeSHA-256
-
-
- -
+

zagan.bet

+

Official client and server builds.

+ 0): ?> +

Builds published UTC.

+ + +

Client

+

Needs a terminal of at least 80×24 cells.

+ +

Nothing published yet.

+ + + + +

Server

+

Generates its own TLS identity on first run.

+ +

Nothing published yet.

+ + + + + + +

SHA-256

+

Save this block as SHA256SUMS and run sha256sum -c SHA256SUMS. On Windows use Get-FileHash <file>.

+
+ -
-

Running it

-
# client (use the file you downloaded)
-chmod +x <downloaded-client>
+

Running it

+

Client:

+
chmod +x <downloaded-client>
 ./<downloaded-client>
- -
# server: first run creates identity.p12, key.pem and cert.pem
-chmod +x <downloaded-server>
+

Server, first run creates identity.p12, key.pem and cert.pem:

+
chmod +x <downloaded-server>
 ./<downloaded-server> --init
 ./<downloaded-server> -i 0.0.0.0 -p 11525
-

Windows: run the .exe from Windows Terminal or another real terminal.

-

Verify a download before running it: sha256sum <file> (Linux) or Get-FileHash <file> (Windows).

-
+

Windows: run the .exe from Windows Terminal or another real terminal.

-
-- cgit v1.2.3