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/latest.php | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 web/latest.php (limited to 'web/latest.php') diff --git a/web/latest.php b/web/latest.php new file mode 100644 index 0000000..3e7368c --- /dev/null +++ b/web/latest.php @@ -0,0 +1,50 @@ + + * gui windows x86_64 4.4.0 zagan-bet-gui-4.4.0-windows-x86_64.exe + * client ... + * server ... + * + * Only the newest version is listed. The installers verify the SHA-256 they + * read here against the bytes they download. + */ + +require __DIR__ . '/releases.php'; + +$scan = scan_releases(); +$all = array_merge( + $scan['releases']['gui'], + $scan['releases']['client'], + $scan['releases']['server'] +); + +$newest = '0.0.0'; +foreach ($all as $release) { + if (version_compare($release['version'], $newest, '>')) { + $newest = $release['version']; + } +} + +header('Content-Type: text/plain; charset=utf-8'); +header('Cache-Control: no-cache'); + +echo 'version ' . $newest . "\n"; +foreach ($all as $release) { + if ($release['version'] !== $newest) { + continue; + } + echo $release['kind'] . ' ' + . $release['platform'] . ' ' + . $release['arch'] . ' ' + . $release['version'] . ' ' + . $release['file'] . ' ' + . $release['sha256'] . "\n"; +} -- cgit v1.2.3