[PR #5595] [CLOSED] Launcher: list native builds on the Versions page, with Remove #6376

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5595
Author: @rdbtCVS
Created: 11/1/2026
Status: ❌ Closed

Base: main ← Head: fix/5326-remove-native-build


📝 Commits (1)

  • 14cbc38 Launcher: list native builds on the Versions page, with Remove

📊 Changes

10 files changed (+154 additions, -46 deletions)

View changed files

📝 launcher/lang/de.json (+1 -0)
📝 launcher/lang/es.json (+1 -0)
📝 launcher/lang/fr.json (+1 -0)
📝 launcher/lang/pl.json (+1 -0)
📝 launcher/lang/pt-br.json (+1 -0)
📝 launcher/lang/ru.json (+1 -0)
📝 launcher/lang/uk.json (+1 -0)
📝 launcher/lang/zh.json (+1 -0)
📝 launcher/src/backend.rs (+5 -1)
📝 launcher/src/main.rs (+141 -45)

📄 Description

🤖 Opened by rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not by rdbtCVS personally.

Native mod builds (native-… versions) only showed in the version picker on the home page. The Versions page lists GitHub releases only, so a build could not be removed by hand. Only the automatic native_mods::prune removed them.

What changed

  • The Versions page now has a Native mod builds section above the releases, shown only when one is installed. Each row has the build's name, what it was built on (native-mods.json), its size on disk, In use when selected, and the same Use / Remove → Remove for good buttons as a release row. The buttons are pulled out into Launcher::version_actions so both rows share them. Removing goes through the existing Launcher::remove → backend::remove_version path, so it shows the same Removing… bar and the same error notice.
  • backend::remove_version now refuses a version a program still runs from (in_use, the check prune_old_versions already uses): "<tag> is running. Quit it first." This applies to releases too. On Windows the delete already failed in that case; on Unix it used to delete the running game's folder.
  • Adds "Built on {base}" to the 8 language files.

This is launcher-only, so there is no vanilla behaviour to match.

Fixes #5326

Tests (in launcher/, shared target dir)

  • cargo fmt: clean
  • cargo clippy --all-targets -- -D warnings: clean
  • cargo test: 328 passed, 1 failed, 3 ignored. The failure is i18n::tests::every_language_has_every_string_the_code_asks_for, which already fails on main: lang/fr.json lacks "Install and turn on native mods", "Native mods (experimental)" and others from earlier merges. This PR adds no new missing string.
  • I did not run the launcher UI for a visual check.

🤖 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/5595 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 11/1/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/5326-remove-native-build` --- ### 📝 Commits (1) - [`14cbc38`](https://github.com/horizon-rust/horizon/commit/14cbc388bb29debcc4b3bd5984f375a6f66b2eda) Launcher: list native builds on the Versions page, with Remove ### 📊 Changes **10 files changed** (+154 additions, -46 deletions) <details> <summary>View changed files</summary> 📝 `launcher/lang/de.json` (+1 -0) 📝 `launcher/lang/es.json` (+1 -0) 📝 `launcher/lang/fr.json` (+1 -0) 📝 `launcher/lang/pl.json` (+1 -0) 📝 `launcher/lang/pt-br.json` (+1 -0) 📝 `launcher/lang/ru.json` (+1 -0) 📝 `launcher/lang/uk.json` (+1 -0) 📝 `launcher/lang/zh.json` (+1 -0) 📝 `launcher/src/backend.rs` (+5 -1) 📝 `launcher/src/main.rs` (+141 -45) </details> ### 📄 Description > 🤖 Opened by rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not by rdbtCVS personally. Native mod builds (`native-…` versions) only showed in the version picker on the home page. The Versions page lists GitHub releases only, so a build could not be removed by hand. Only the automatic `native_mods::prune` removed them. **What changed** - The Versions page now has a **Native mod builds** section above the releases, shown only when one is installed. Each row has the build's name, what it was built on (`native-mods.json`), its size on disk, *In use* when selected, and the same **Use** / **Remove** → **Remove for good** buttons as a release row. The buttons are pulled out into `Launcher::version_actions` so both rows share them. Removing goes through the existing `Launcher::remove` → `backend::remove_version` path, so it shows the same *Removing…* bar and the same error notice. - `backend::remove_version` now refuses a version a program still runs from (`in_use`, the check `prune_old_versions` already uses): "`<tag>` is running. Quit it first." This applies to releases too. On Windows the delete already failed in that case; on Unix it used to delete the running game's folder. - Adds `"Built on {base}"` to the 8 language files. This is launcher-only, so there is no vanilla behaviour to match. Fixes #5326 **Tests** (in `launcher/`, shared target dir) - `cargo fmt`: clean - `cargo clippy --all-targets -- -D warnings`: clean - `cargo test`: 328 passed, 1 failed, 3 ignored. The failure is `i18n::tests::every_language_has_every_string_the_code_asks_for`, which already fails on main: `lang/fr.json` lacks "Install and turn on native mods", "Native mods (experimental)" and others from earlier merges. This PR adds no new missing string. - I did not run the launcher UI for a visual check. 🤖 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 06:19:22 +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#6376
No description provided.