fix(pack): regenerate custom mod URLs for current BASE_DOMAIN

The mods/*.pw.toml download URLs were frozen at ulicraft.lan; the stack
now uses ulicraft.net. Regenerate all nine with the current domain.

add-custom-mod.sh: skip the copy when source == hosted dest (`-ef`),
so `add-custom-mod.sh custom --force` works as an in-place regen.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-07 21:52:00 +02:00
parent c40cbe7594
commit 39be74d028
12 changed files with 22 additions and 20 deletions

View File

@@ -98,7 +98,9 @@ add_one() { # $1 = jar path. Uses NAME (single-jar only), SIDE, FORCE, BASE_DOM
fi
hash="$(sha256sum -- "$jar" | cut -d' ' -f1)"
cp -- "$jar" "$dest"
# Skip the copy when the source already IS the hosted file (regen-in-place,
# e.g. `add-custom-mod.sh custom --force` to refresh URLs after a domain change).
[ "$dest" -ef "$jar" ] || cp -- "$jar" "$dest"
cat > "$meta" <<EOF
name = "${name}"
filename = "${filename}"