The download URL is the only domain-dependent field in the external-file
metadata. Make mods/*.pw.toml build output rendered from committed
mods/*.pw.toml.tmpl (url uses ${BASE_DOMAIN}); render-config.sh and
add-custom-mod.sh render them + packwiz refresh at deploy/add time.
- pack/.packwizignore: keep *.pw.toml.tmpl out of the index
- gitignore rendered pack/mods/*.pw.toml + pack/index.toml (build output)
- seed a minimal index.toml before refresh (packwiz won't bootstrap one)
- add-custom-mod renders inline (BASE_DOMAIN only) — no coupling to
dnsmasq's HOST_LAN_IP
Domain changes now just need a re-render, not a metadata rewrite.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Ulicraft modpack (packwiz)
This directory is the single source of truth for the modpack (MC 1.21.1, NeoForge 21.1.209). Curate mods from here with packwiz modrinth add <slug> (prefer Modrinth over CurseForge); each mod produces a mods/<slug>.pw.toml metadata file referencing the upstream CDN. Client-only mods must be tagged side = "client" in their .pw.toml so the itzg server does not pull and crash on them. After adding/removing mods run packwiz refresh to recompute index.toml; for offline LAN play run tooling/mirror-mods.sh to vendor the jars and rewrite the download URLs to the local Caddy mirror. Curation is an ongoing manual task — no mods are added yet.