From 4482ff63f3d0a335ffa5b82ae54ac743d6e5203d Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Tue, 27 Oct 2026 03:25:19 +0100 Subject: [PATCH] =?UTF-8?q?launcher:=20Export=E2=80=A6=20on=20Home's=20Ins?= =?UTF-8?q?tance=20row?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Instance row gets Export…, which opens a panel to pick .mrpack or .zip and switch on the worlds to include. The file goes to exports/ in the launcher's data folder under a free name, and the panel offers Show in folder. The panel closes when another instance is picked. Co-Authored-By: Claude Opus 5.5 --- launcher/README.md | 9 ++ launcher/src/export_page.rs | 213 +++++++++++++++++++++++++++++++++ launcher/src/instances_page.rs | 19 ++- launcher/src/main.rs | 4 + 4 files changed, 244 insertions(+), 1 deletion(-) create mode 100644 launcher/src/export_page.rs diff --git a/launcher/README.md b/launcher/README.md index 0fa2a6aef..ea5cc449b 100644 --- a/launcher/README.md +++ b/launcher/README.md @@ -83,6 +83,15 @@ The opening, then Play ([clip](docs/opening.webm)): instance plays the launcher's version, which follows updates, unless the Play page's version picker keeps it on another installed one (to keep an old world on the version it was made with); picking the version marked "follows updates" lets it follow again. +- **Export**: Home's Instance row has **Export…**: the selected instance (or a port) as a `.mrpack` + (Modrinth's modpack format: resource packs the browser installed from Modrinth are listed by + their download, the rest is in `overrides/`) or a `.zip` of the game folder's layout, with the + worlds switched on. It is written to `exports/` in the launcher's data folder (**Show in + folder**). Only settings (options.txt, horizon-*.txt, servers.dat), resource and shader packs, + `horizon-mods/` and `config/` go in: never logs, screenshots, backups, caches or account files; + a world goes without `playerdata/`, `stats/` and `advancements/`, and its level.dat without the + player's UUID. `horizon-launcher instance export [] [--format mrpack|zip] [--world + ]… [--out ]`. - **Worlds**: Home lists the selected instance's worlds (picture, mode, version, last played, size). **Back up** zips one into the instance's `backups/` as the game's Make Backup does (`_