Skip to content

Update sheet shows the release notes of language-section bodies - #242

Merged
v0lumehi merged 1 commit into
mainfrom
v0lumehi/release-notes-sections
Oct 30, 2026
Merged

v0lumehi merged 1 commit into
mainfrom
v0lumehi/release-notes-sections

Conversation

@v0lumehi

Copy link
Copy Markdown
Collaborator

Fixes the Mac launcher's update sheet showing only the install footer for v0.7.2.

What and why

Symptom: for v0.7.2 the sheet shows only "Install: download NX2Apple-macOS-arm64.zip ... 中文:..." and none of the release notes. The v0.7.2 body is ## 中文, ## English, then --- and a shared install footer.

Cause: ReleaseNotes.lines(_:for:) split the body at --- into two halves. For v0.7.2 that gives "both language sections" and "footer", so the English pick landed on the footer.

Fix:

  • Language headings come first (## 中文 / ## English, also ###, or a line of just **中文** / **English**). The section for the interface language runs to the next language heading or a ---.
  • Text after the last --- that follows the language sections is a shared footer and is shown once under the chosen section.
  • The old --- halves and inline **中文** marker logic is the fallback when there are no language headings, and the whole body when nothing can be told apart.
  • Swedish uses the English section.

@LNPANDY release bodies in either shape (the old --- halves of v0.7.0 and the sectioned one of v0.7.2) now work.

Checked

  • Tests: cd frontend && swift build -c release && swift test (455 tests, 0 failures), python3 scripts/patches.py check. New tests use the real v0.7.2 body as a fixture (frontend/Tests/Fixtures/release_v0.7.2.md) for en, zh and sv, plus heading variants, and v0.7.0 still passes: right bullets, footer once, nothing of the other language.
  • Visual QA: NX_LAUNCHER_CAPTURE_DIR=<dir> swift test captures of the update sheet for v0.7.2 in en and zh, looked at: bullets then the install line, no other language.
  • Run on a device or Mac: not run beyond the captures.

Scope

  • No vendored file (dm/, scripts/, docs/, ref/, AGENTS.md) is edited directly
  • Not an engine or game profile change
  • No keys, game files or data extracted from a game

…d footer

A body with ## 中文 and ## English sections and a shared footer after --- was split at the rule, so the English pick landed on the footer. Language headings are now preferred, the text after the last rule is shown under the chosen section, and the old halves logic is the fallback.
@v0lumehi v0lumehi added bug Something isn't working launcher The NX2Apple launcher app labels Oct 30, 2026
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Oct 30, 2026
@v0lumehi
v0lumehi merged commit 3d78c5e into main Oct 30, 2026
10 checks passed
@v0lumehi
v0lumehi deleted the v0lumehi/release-notes-sections branch October 30, 2026 10:07
@v0lumehi v0lumehi mentioned this pull request Oct 30, 2026
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation launcher The NX2Apple launcher app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant