[PR #1667] [MERGED] Game releases send people to the launcher: notes open with it, archives labelled #3673

Closed
opened 2026-11-03 04:11:19 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1667
Author: @ludovic111
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/24/2026
Merged by: @ludovic111

Base: main ← Head: fix/release-page-launcher-first


📝 Commits (1)

  • 3612f51 Game releases send people to the launcher: notes open with it, archives labelled

📊 Changes

6 files changed (+68 additions, -15 deletions)

View changed files

📝 .github/workflows/release.yml (+8 -3)
📝 docs/release-flow.md (+9 -0)
📝 tests/test_release_train.py (+16 -2)
📝 tools/release_train.py (+16 -8)
📝 website/src/releases.js (+6 -2)
➕ website/src/releases.test.mjs (+13 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Fixes #1647

Why not make a launcher release GitHub's "latest"

I checked every consumer of releases/latest or the latest flag:

Consumer Uses Would a launcher "latest" break it?
crates/horizon-server/src/update.rs (horizon-server update) releases/latest, then the game archive for this machine Yes: "release launcher@… has no archive for this computer". Servers already installed can't be fixed, because they can't update to a fixed version
packaging/server/install.sh, install.ps1 releases/latest Yes, same reason
website/build.mjs, website/src/main.js the release list; releases/latest only as a fallback for a game release the fallback would pick the wrong kind
Launcher (backend.rs, release_list) releases?per_page=100, filtered by tag no
release_train.py, Kira (~/code/kira/src/releases.js) the release list no

So the game release stays the latest, and it now points people to the launcher.

What changes

  • The notes open with the way to the launcher (PLAYERS in tools/release_train.py): "Want to play? Download the Horizon launcher, not the files below", linking playhorizon.dev and the launcher releases. The old game footer said the same at the bottom; it is gone.
    • The block is raw HTML on one line. GitHub renders it (checked with gh api /markdown, mode gfm: an <h3> with both links). The launcher's notes view (markdown.rs) and its one-line summary (notes_summary) skip pulldown-cmark's HTML events. So launchers already installed don't show players a "download the launcher" line, and their summary stays the first real change.
    • The site's Releases page leaves the block out (notesText in website/src/releases.js, with a test).
  • Archives get labels in release.yml (gh release create file#label), which GitHub shows in place of the file name: "Game files the launcher installs: Linux (horizon-linux-x86_64.tar.gz)", the same for Windows and macOS, and "Dedicated server for Linux (horizon-server-linux-x86_64.tar.gz)". Asset names are unchanged, and everything that downloads matches on the name.
  • docs/release-flow.md explains why the game stays the latest.

Update paths, proved

  • The previous launcher finds the new releases. I downloaded launcher@0.2.4 (macOS) and ran it with fresh mktemp -d HORIZON_LAUNCHER_HOME, HORIZON_HOME, XDG_DATA_HOME and XDG_CONFIG_HOME, and with HORIZON_LAUNCHER_NO_SELF_UPDATE=1:
    • update --check → Horizon: v0.2.49 is available. / Launcher: 0.2.5 is available (this is 0.2.4).
    • install latest → Installed v0.2.49. (after the signature check)
    • Nothing about which release is latest changes in this PR, so this path stays the same.
  • Shipped launchers skip the new block. I ran launcher@0.2.4's own markdown_to_text and notes_summary (copied from the tag, with pulldown-cmark 0.12.2 from launcher/Cargo.lock) on a body generated by this branch. The text starts at Fixed, the block is absent, and the summary is "Baby villagers wear their biome's clothes again (#1566)".
  • Labels don't disturb install.sh. I took the real v0.2.49 JSON, injected these labels, and ran install.sh's awk parser on both versions. URL and digest are identical for the server and macOS archives. horizon-server's pick() and the launcher read name through serde, and label is already a field (null) in today's JSON.

Self-check

python3 -m unittest tests.test_release_train          OK (19 + 1 new)
python3 -m unittest discover -s tests                 2 errors, the same 2 on main (test_parity_runner / test_rust_parity reuse tests)
cd website && node --test src/                        11 pass, 0 fail (new releases.test.mjs)
cd website && node build.mjs                          ok
release.yml                                           parses (ruby YAML); `gh release create --help` documents file#label
python3 tools/check_public_tree.py                    passed

No Rust changes, and nothing here triggers a release. The first game release after this merge carries the new notes and labels.

Needs Ludovic

  • Nothing has to be decided. Optional: the latest release (v0.2.49) still has the old layout until the next release. Its notes and labels can be edited by hand if he wants it fixed sooner.
  • A follow-up for the kira repo, not done here: Kira's firstLines (used only for a game release with no New/Fixed bullets) would show the raw HTML block in Discord.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/1667 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/24/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/release-page-launcher-first` --- ### 📝 Commits (1) - [`3612f51`](https://github.com/horizon-rust/horizon/commit/3612f5181232b79527c345cc0d6f9b3339cc3839) Game releases send people to the launcher: notes open with it, archives labelled ### 📊 Changes **6 files changed** (+68 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/release.yml` (+8 -3) 📝 `docs/release-flow.md` (+9 -0) 📝 `tests/test_release_train.py` (+16 -2) 📝 `tools/release_train.py` (+16 -8) 📝 `website/src/releases.js` (+6 -2) ➕ `website/src/releases.test.mjs` (+13 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Fixes #1647 ## Why not make a launcher release GitHub's "latest" I checked every consumer of `releases/latest` or the latest flag: | Consumer | Uses | Would a launcher "latest" break it? | |---|---|---| | `crates/horizon-server/src/update.rs` (`horizon-server update`) | `releases/latest`, then the game archive for this machine | **Yes**: "release launcher@… has no archive for this computer". Servers already installed can't be fixed, because they can't update to a fixed version | | `packaging/server/install.sh`, `install.ps1` | `releases/latest` | **Yes**, same reason | | `website/build.mjs`, `website/src/main.js` | the release list; `releases/latest` only as a fallback for a game release | the fallback would pick the wrong kind | | Launcher (`backend.rs`, `release_list`) | `releases?per_page=100`, filtered by tag | no | | `release_train.py`, Kira (`~/code/kira/src/releases.js`) | the release list | no | So the game release stays the latest, and it now points people to the launcher. ## What changes - **The notes open with the way to the launcher** (`PLAYERS` in `tools/release_train.py`): "Want to play? Download the Horizon launcher, not the files below", linking playhorizon.dev and the launcher releases. The old game footer said the same at the bottom; it is gone. - The block is **raw HTML on one line**. GitHub renders it (checked with `gh api /markdown`, mode gfm: an `<h3>` with both links). The launcher's notes view (`markdown.rs`) and its one-line summary (`notes_summary`) skip pulldown-cmark's HTML events. So **launchers already installed** don't show players a "download the launcher" line, and their summary stays the first real change. - The site's Releases page leaves the block out (`notesText` in `website/src/releases.js`, with a test). - **Archives get labels** in `release.yml` (`gh release create file#label`), which GitHub shows in place of the file name: "Game files the launcher installs: Linux (horizon-linux-x86_64.tar.gz)", the same for Windows and macOS, and "Dedicated server for Linux (horizon-server-linux-x86_64.tar.gz)". Asset **names are unchanged**, and everything that downloads matches on the name. - `docs/release-flow.md` explains why the game stays the latest. ## Update paths, proved - **The previous launcher finds the new releases.** I downloaded launcher@0.2.4 (macOS) and ran it with fresh `mktemp -d` `HORIZON_LAUNCHER_HOME`, `HORIZON_HOME`, `XDG_DATA_HOME` and `XDG_CONFIG_HOME`, and with `HORIZON_LAUNCHER_NO_SELF_UPDATE=1`: - `update --check` → `Horizon: v0.2.49 is available.` / `Launcher: 0.2.5 is available (this is 0.2.4).` - `install latest` → `Installed v0.2.49.` (after the signature check) - Nothing about which release is latest changes in this PR, so this path stays the same. - **Shipped launchers skip the new block.** I ran launcher@0.2.4's own `markdown_to_text` and `notes_summary` (copied from the tag, with pulldown-cmark 0.12.2 from `launcher/Cargo.lock`) on a body generated by this branch. The text starts at `Fixed`, the block is absent, and the summary is `"Baby villagers wear their biome's clothes again (#1566)"`. - **Labels don't disturb install.sh.** I took the real v0.2.49 JSON, injected these labels, and ran install.sh's awk parser on both versions. URL and digest are identical for the server and macOS archives. `horizon-server`'s `pick()` and the launcher read `name` through serde, and `label` is already a field (`null`) in today's JSON. ## Self-check ``` python3 -m unittest tests.test_release_train OK (19 + 1 new) python3 -m unittest discover -s tests 2 errors, the same 2 on main (test_parity_runner / test_rust_parity reuse tests) cd website && node --test src/ 11 pass, 0 fail (new releases.test.mjs) cd website && node build.mjs ok release.yml parses (ruby YAML); `gh release create --help` documents file#label python3 tools/check_public_tree.py passed ``` No Rust changes, and nothing here triggers a release. The first game release after this merge carries the new notes and labels. ## Needs Ludovic - Nothing has to be decided. Optional: the latest release (v0.2.49) still has the old layout until the next release. Its notes and labels can be edited by hand if he wants it fixed sooner. - A follow-up for the kira repo, not done here: Kira's `firstLines` (used only for a game release with no New/Fixed bullets) would show the raw HTML block in Discord. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:11:19 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#3673
No description provided.