From 4887abc5773b33ab1e213ed5f528dfebd242e2cd Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 1 Nov 2026 22:23:00 +0100 Subject: v4.4.0: stable installers that follow the newest published build Adds web/latest.php: a plain-text feed of the newest version with each artifact's filename and SHA-256. The per-release generated installers are replaced by stable web/install.sh and web/install.ps1; both read the feed, pick the newest build, verify it, install per-user and add a launcher. Publishing a new app version no longer regenerates or versions the installers. publish.sh drops the installer renderer and Python dependency. deploy.sh now also verifies latest.php against the local artifacts and that the served installer scripts match the repository. --- web/README.md | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) (limited to 'web/README.md') diff --git a/web/README.md b/web/README.md index 1ee794f..13f5f85 100644 --- a/web/README.md +++ b/web/README.md @@ -8,10 +8,14 @@ browser defaults: black text, blue links, monospace checksums. PHP 8.0+. ``` web/ - index.php - bin/gui/ served at /bin/gui/... (app and installers) - bin/client/ served at /bin/client/... - bin/server/ served at /bin/server/... + index.php the download page + latest.php newest-version feed for the installers + releases.php shared scanner and hash cache + install.sh stable Linux installer + install.ps1 stable Windows installer + bin/gui/ apps, served at /bin/gui/... + bin/client/ terminal clients + bin/server/ servers ``` Serve `web/` as the document root. Binaries in `bin/` are gitignored. @@ -23,8 +27,6 @@ those directories is ignored. ``` bin/gui/zagan-bet-gui---[.exe] -bin/gui/zagan-bet-gui----install.sh -bin/gui/zagan-bet-gui----install.ps1 bin/client/zagan-bet-client---[.exe] bin/server/zagan-bet-server---[.exe] ``` @@ -32,12 +34,14 @@ bin/server/zagan-bet-server---[.exe] `` is `MAJOR.MINOR.PATCH`, `` is `linux`, `windows` or `macos`, `` is `x86_64`, `i686` or `aarch64`. -The installers are generated next to their app. They embed the app's SHA-256, -check the file (or download it) and install it for the current user: Linux +The installers are not versioned. They read `latest.php`, pick the newest build +for the machine, verify its SHA-256 and install it for the current user: Linux writes `~/.local/bin/zagan-bet-gui` plus a `.desktop` launcher, Windows writes -`%LOCALAPPDATA%\Programs\Zagan-Bet` plus a Start-menu shortcut. The Windows -installer waits for Enter before closing (`-NoPause` for automation). The page -links the public git repository for the GPL corresponding source. +`%LOCALAPPDATA%\Programs\Zagan-Bet` plus a Start-menu shortcut. Updating the +site only needs `publish.sh`; the installer links never change. Set +`ZAGAN_SITE` (Linux) or `-Site` (Windows) to test against a staging site. The +Windows installer waits for Enter before closing (`-NoPause` for automation). +The page links the public git repository for the GPL corresponding source. ## Publishing a build @@ -49,19 +53,17 @@ From the repository root: It reads the version from `Cargo.toml`, builds every artifact and installs them under `web/bin` with the names above. The GUI is built with the -workspace's `gui-release` profile (LTO, stripped) and the installers are -rendered with Python 3 and the published SHA-256. Run it from a clean tree so +workspace's `gui-release` profile (LTO, stripped). Run it from a clean tree so the release commit is the source the page links to. Override the destination -with `DEST=/srv/www/bin ./scripts/publish.sh`, and the download origin baked -into the installers with `URL_BASE=https://staging.example/ ./scripts/publish.sh`. -`ALLOW_DIRTY=1` skips the clean-tree check for a preview. +with `DEST=/srv/www/bin ./scripts/publish.sh`; `ALLOW_DIRTY=1` skips the +clean-tree check for a preview. The installers are static and need no +regeneration. Builds are per target triple, so these must be installed: `x86_64-unknown-linux-gnu`, `i686-unknown-linux-gnu` and `x86_64-pc-windows-gnu`, plus the mingw linker for the Windows build. Client builds always pass `--no-default-features`, which drops the server's OpenSSL -dependency; the client is rustls-only. The GUI needs Python 3 at publish time -for the installer templates in `scripts/installers/`. +dependency; the client is rustls-only. Cargo itself cannot produce these names: it always writes `target//release/`. The script renames after each build. -- cgit v1.2.3