fix: default client fileApi is the Nexus raw tdlm-client #20

Merged
layue13 merged 1 commits from fix/default-client-fileapi into main 2026-11-10 08:28:40 +00:00
Owner

Requested by Ethyn · project thread

What

  • Metadata.DEFAULT_CLIENT_FILE_API is now https://maven.dandanton.com/repository/tdlm-client (the Nexus raw repository the pack publishes to, read through the CDN host). It was https://packages.dandanton.com/tdlm-client/latest, which answers 404.
  • First-launch auto install (Controllers.tryInstallBundledModpack): a failed or malformed manifest used to only log a warning. It now shows the error and opens the import wizard, the same behaviour as Instances.installServerModpack().

Why

A player who downloads only HMCL gets an empty launcher when the built-in manifest address is wrong. After this change a fresh HMCL fetches server-manifest.json from the new address and opens the Server Modpack install wizard. Later updates read the fileApi stored in the installed manifest, so they were already correct for packs built after TDLMPack #226.

🤖 Generated with Claude Code

<!-- claude-projects-attribution --> _Requested by **Ethyn** · [project thread](https://claude.ai/code/project/chan_01DUNCDJLEksDHKpX5X5cThi?thread=cmsg_01DUNCDJLEksDHKpX5X5cThiRvLTuoiW2aLrdEVjHKAwbz)_ ## What - `Metadata.DEFAULT_CLIENT_FILE_API` is now `https://maven.dandanton.com/repository/tdlm-client` (the Nexus raw repository the pack publishes to, read through the CDN host). It was `https://packages.dandanton.com/tdlm-client/latest`, which answers 404. - First-launch auto install (`Controllers.tryInstallBundledModpack`): a failed or malformed manifest used to only log a warning. It now shows the error and opens the import wizard, the same behaviour as `Instances.installServerModpack()`. ## Why A player who downloads only HMCL gets an empty launcher when the built-in manifest address is wrong. After this change a fresh HMCL fetches `server-manifest.json` from the new address and opens the Server Modpack install wizard. Later updates read the `fileApi` stored in the installed manifest, so they were already correct for packs built after TDLMPack #226. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
layue13 added 1 commit 2026-11-10 08:18:51 +00:00
fix: default client fileApi is the Nexus raw tdlm-client; tell the player when the manifest cannot be fetched
Mirror Repository / Mirror to CNB (push) Skipped
Mirror Repository / Mirror to Gitee (push) Skipped
Java CI / build (pull_request) Successful in 9m1s
f549f6d185
The default pointed at packages.dandanton.com/tdlm-client/latest (404), so the first-launch auto install
silently did nothing. It now points at https://maven.dandanton.com/repository/tdlm-client, and a failed or
malformed manifest shows an error and opens the import wizard (same behaviour as the Start menu install).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
layue13 merged commit f5d739711d into main 2026-11-10 08:28:40 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TDLM/HMCL#20