[PR #3679] [MERGED] Launcher: copy CurseForge app and Modrinth App instances into Java instances #5147

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

📋 Pull Request Information

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

Base: main ← Head: feat/launcher-import-apps


📝 Commits (2)

  • dc66e37 Launcher: copy CurseForge app and Modrinth App instances into Java instances
  • 5005a7a Merge remote-tracking branch 'origin/main' into feat/launcher-import-apps

📊 Changes

4 files changed (+183 additions, -22 deletions)

View changed files

📝 docs/launcher-commands.md (+2 -1)
📝 launcher/src/cli.rs (+15 -5)
📝 launcher/src/other_launchers.rs (+108 -12)
📝 launcher/src/other_launchers/tests.rs (+58 -4)

📄 Description

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

Follows #3612. instance others and instance copy-from now also find the CurseForge app's and the Modrinth App's instances, read without changing anything there, and copy them into new Java instances.

Formats come from public descriptions only (clean room):

  • CurseForge app: the modding folder (~/curseforge/minecraft on Windows, ~/Documents/curseforge/minecraft on macOS and Linux) keeps each modpack in Instances/<name>/. That folder is the game folder itself, beside the app's own minecraftinstance.json and .curseclient, which are not copied.
  • Modrinth App: its folder (ModrinthApp, com.modrinth.theseus before 0.8.0, already in sources::known_folders) keeps each instance's game folder in profiles/<name>/.
  • Neither app publicly describes where it records an instance's Minecraft version: the fields of minecraftinstance.json aren't documented, and the Modrinth App keeps it in its own database. So others says the version isn't recorded, and copy-from --minecraft <version> names it. Without it, the copy stops with that message.

Checked live in a scratch home with a fixture CurseForge folder: others lists it, copy-from without --minecraft explains what's missing, and with --minecraft 1.20.1 --as "ATM copy" it makes the instance with mods/ copied.

Sources

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at 19faf8969, 5 min 0 s)

Check Result
Scope ✅ 4 files, +182 −21
Cargo.lock ✅ unchanged
Public tree ✅ (1 s)
Python tests ✅ 411 passed (4 min 46 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 ✅ (2 s)
launcher clippy ✅ (4 s)
launcher tests ✅ 266 passed (5 s)
Parity ➖ 1 affected, to run in CI (--quick): lan_integration
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 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/3679 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/launcher-import-apps` --- ### 📝 Commits (2) - [`dc66e37`](https://github.com/horizon-rust/horizon/commit/dc66e378471b0a0cf4d49112d6b44a2981424e44) Launcher: copy CurseForge app and Modrinth App instances into Java instances - [`5005a7a`](https://github.com/horizon-rust/horizon/commit/5005a7ad9f4c8ee7bfdfbf61f067620e990aead4) Merge remote-tracking branch 'origin/main' into feat/launcher-import-apps ### 📊 Changes **4 files changed** (+183 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `docs/launcher-commands.md` (+2 -1) 📝 `launcher/src/cli.rs` (+15 -5) 📝 `launcher/src/other_launchers.rs` (+108 -12) 📝 `launcher/src/other_launchers/tests.rs` (+58 -4) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Follows #3612. `instance others` and `instance copy-from` now also find the CurseForge app's and the Modrinth App's instances, read without changing anything there, and copy them into new Java instances. Formats come from public descriptions only (clean room): - **CurseForge app:** the modding folder (`~/curseforge/minecraft` on Windows, `~/Documents/curseforge/minecraft` on macOS and Linux) keeps each modpack in `Instances/<name>/`. That folder is the game folder itself, beside the app's own `minecraftinstance.json` and `.curseclient`, which are not copied. - **Modrinth App:** its folder (`ModrinthApp`, `com.modrinth.theseus` before 0.8.0, already in `sources::known_folders`) keeps each instance's game folder in `profiles/<name>/`. - Neither app publicly describes where it records an instance's Minecraft version: the fields of `minecraftinstance.json` aren't documented, and the Modrinth App keeps it in its own database. So `others` says the version isn't recorded, and `copy-from --minecraft <version>` names it. Without it, the copy stops with that message. Checked live in a scratch home with a fixture CurseForge folder: `others` lists it, `copy-from` without `--minecraft` explains what's missing, and with `--minecraft 1.20.1 --as "ATM copy"` it makes the instance with `mods/` copied. ### Sources - [CurseForge: Minecraft – Getting Started](https://support.curseforge.com/support/solutions/articles/9000218572-minecraft-getting-started) - [CurseForge: How to move your Minecraft modding folder](https://support.curseforge.com/support/solutions/articles/9000238895-how-to-move-your-minecraft-modding-folder) - [Akliz: CurseForge launcher modpack and server pack](https://help.akliz.net/docs/make-a-curseforge-launcher-modpack-and-server-pack) - [Modrinth: app storage folder location](https://support.modrinth.com/en/articles/8797641-modrinth-app-storage-folder-location) - [modrinth/code #5825](https://github.com/modrinth/code/issues/5825) (an issue thread, for the `profiles/` layout) **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 19faf8969, 5 min 0 s) | Check | Result | | --- | --- | | Scope | ✅ 4 files, +182 −21 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (1 s) | | Python tests | ✅ 411 passed (4 min 46 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 | ✅ (2 s) | | launcher clippy | ✅ (4 s) | | launcher tests | ✅ 266 passed (5 s) | | Parity | ➖ 1 affected, to run in CI (--quick): lan_integration | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 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 05:10:34 +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#5147
No description provided.