[PR #3664] [CLOSED] Add Linux setup script using installed Minecraft files #5135

Closed
opened 2026-11-03 05:10:30 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3664
Author: @abduvaliy-engineer
Created: 10/29/2026
Status: ❌ Closed

Base: main ← Head: feat/play-installed-linux


📝 Commits (1)

  • 5b818b7 Add Linux setup script for installed Minecraft files

📊 Changes

3 files changed (+458 additions, -0 deletions)

View changed files

📝 README.md (+30 -0)
➕ play-installed.sh (+236 -0)
➕ tests/test_play_installed.py (+192 -0)

📄 Description

🤖 Opened by Abduvaliy's AI agent (OpenAI Codex), not by Abduvaliy himself.

What and why

A player who already installed Minecraft through another launcher currently has to discover its files, install the source-build prerequisites, prepare resources, and copy sounds separately. Add ./play-installed.sh to perform that Linux setup and launch Horizon using the existing files.

The script searches common launcher and Flatpak locations, supports a custom directory, and checks the client, original version metadata, and server JAR against research-lock.json. Missing or incomplete client files produce “Please install release 26.3 from your client, launch it once, then rerun this script.” It never downloads Minecraft files or changes the source installation. A separate matching server JAR is still required. Launchers with rewritten metadata need an original pinned manifest already on disk.

Missing native dependencies use pacman, apt, dnf, or zypper. Missing Rust uses rustup; a missing JDK is installed into .local/ from Temurin with SHA-256 verification. Bash bootstraps the build before Rust is available; the game and resource preparer remain Rust. --check, --no-install, and --prepare-only support inspection and controlled setup.

Vanilla reference

None: source-build tooling and documentation; no gameplay changes.

Self-check

  • bash -n play-installed.sh and git diff --check passed.
  • 11 offline script tests cover discovery, version rejection, custom paths, and simulated pacman/apt/dnf/zypper installation flows. Real package installation was not performed on those distributions.
  • On an Arch laptop, ./play-installed.sh --check found the existing TLauncher 26.3 install. ./play-installed.sh --no-install --prepare-only successfully built the binaries, prepared resources, and imported 4,962 sound files.
  • An initial full parity run selected gameplay harnesses without prior dependency records. Java compilation failed because the system javac is Java 17 (release version 25 not supported); that broad run was stopped. Gameplay parity is not claimed. The script's actual preparation selected the local JDK 25 and passed.

pr_ready (tools/pr_ready.py --quick on omarchy, against origin/main at 11494e17f, 31 s)

Check Result
Scope ✅ 3 files, +458 −0
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 419 passed (31 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 310 affected, to run in CI (--quick): block_update, blocking_item_damage, blocking_rules, blockstate_binding, blockstate_model, blockstate_transform, blue_ice, bonus_chest, breaking_model, bulk_section, bundle_weight, camera and 298 more
Label skip-release

🤖 Generated with OpenAI Codex


🔄 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/3664 **Author:** [@abduvaliy-engineer](https://github.com/abduvaliy-engineer) **Created:** 10/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/play-installed-linux` --- ### 📝 Commits (1) - [`5b818b7`](https://github.com/horizon-rust/horizon/commit/5b818b73196930b7e0ecc1f6c13ab992128d8f70) Add Linux setup script for installed Minecraft files ### 📊 Changes **3 files changed** (+458 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+30 -0) ➕ `play-installed.sh` (+236 -0) ➕ `tests/test_play_installed.py` (+192 -0) </details> ### 📄 Description > 🤖 Opened by Abduvaliy's AI agent (OpenAI Codex), not by Abduvaliy himself. ## What and why A player who already installed Minecraft through another launcher currently has to discover its files, install the source-build prerequisites, prepare resources, and copy sounds separately. Add `./play-installed.sh` to perform that Linux setup and launch Horizon using the existing files. The script searches common launcher and Flatpak locations, supports a custom directory, and checks the client, original version metadata, and server JAR against `research-lock.json`. Missing or incomplete client files produce “Please install release 26.3 from your client, launch it once, then rerun this script.” It never downloads Minecraft files or changes the source installation. A separate matching server JAR is still required. Launchers with rewritten metadata need an original pinned manifest already on disk. Missing native dependencies use pacman, apt, dnf, or zypper. Missing Rust uses rustup; a missing JDK is installed into `.local/` from Temurin with SHA-256 verification. Bash bootstraps the build before Rust is available; the game and resource preparer remain Rust. `--check`, `--no-install`, and `--prepare-only` support inspection and controlled setup. ## Vanilla reference None: source-build tooling and documentation; no gameplay changes. ## Self-check - `bash -n play-installed.sh` and `git diff --check` passed. - 11 offline script tests cover discovery, version rejection, custom paths, and simulated pacman/apt/dnf/zypper installation flows. Real package installation was not performed on those distributions. - On an Arch laptop, `./play-installed.sh --check` found the existing TLauncher 26.3 install. `./play-installed.sh --no-install --prepare-only` successfully built the binaries, prepared resources, and imported 4,962 sound files. - An initial full parity run selected gameplay harnesses without prior dependency records. Java compilation failed because the system `javac` is Java 17 (`release version 25 not supported`); that broad run was stopped. Gameplay parity is not claimed. The script's actual preparation selected the local JDK 25 and passed. **pr_ready** (`tools/pr_ready.py --quick` on omarchy, against origin/main at 11494e17f, 31 s) | Check | Result | | --- | --- | | Scope | ✅ 3 files, +458 −0 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 419 passed (31 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 310 affected, to run in CI (--quick): block_update, blocking_item_damage, blocking_rules, blockstate_binding, blockstate_model, blockstate_transform, blue_ice, bonus_chest, breaking_model, bulk_section, bundle_weight, camera and 298 more | | Label | `skip-release` | 🤖 Generated with [OpenAI Codex](https://openai.com/codex/) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:10:30 +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#5135
No description provided.