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

@@ -10,45 +10,45 @@ hash = "3915be75668def5a70667584c7aebdc1ee9a7f7dd9479cb10fb174aad40a6b4e"
[[files]] [[files]]
file = "mods/balm-neoforge-1-21-1-21-0-58.pw.toml" file = "mods/balm-neoforge-1-21-1-21-0-58.pw.toml"
hash = "4d04516cc66ac6f29d6d1ae16bfd89217f21d842858ace5bcae1e402da5da0e2" hash = "b70538546ed7ff18186f9319bb00a71a1062ced87c36dd8733cf85dc4bc3ea3c"
metafile = true metafile = true
[[files]] [[files]]
file = "mods/customskinloader-universal-14-28.pw.toml" file = "mods/customskinloader-universal-14-28.pw.toml"
hash = "f6bad6c9cde7e07325c9a190122df72ed4c14ee422930431df919838e5ed61b7" hash = "1b9cd3d7819f06130c0e5bf81c6b91452d43651c3fdb304f62d27ca505b9e30f"
metafile = true metafile = true
[[files]] [[files]]
file = "mods/inventoryessentials-neoforge-1-21-1-21-1-15.pw.toml" file = "mods/inventoryessentials-neoforge-1-21-1-21-1-15.pw.toml"
hash = "d7b7d3049e745ec728d37231df97bbf0efdb409b632a4aff4003f33905d13b77" hash = "6feb22b4a4561dffde0e6b5a2dbd82d69ba4180295e6c44e5c9ac919db727e74"
metafile = true metafile = true
[[files]] [[files]]
file = "mods/jade-1-21-1-neoforge-15-10-5.pw.toml" file = "mods/jade-1-21-1-neoforge-15-10-5.pw.toml"
hash = "fa1e8fa38a154ddcfbce514451572b99acac2655eb98c1d1d7a8dc40e42d67da" hash = "d35f921f7e076b71630f6ff63dc11d2b1f32321c1aa7787ba3e62dc73b455d16"
metafile = true metafile = true
[[files]] [[files]]
file = "mods/jadeaddons-1-21-1-neoforge-6-1-0.pw.toml" file = "mods/jadeaddons-1-21-1-neoforge-6-1-0.pw.toml"
hash = "b00dbab69eaa332e3795ea327195b271fe37105fb024df8255356828f5e20151" hash = "b551252e2ece3f005f3ee8094e697ccc5378236adea92814f61ec0cc0a33a7bb"
metafile = true metafile = true
[[files]] [[files]]
file = "mods/jei-1-21-1-neoforge-19-27-0-340.pw.toml" file = "mods/jei-1-21-1-neoforge-19-27-0-340.pw.toml"
hash = "68b3a768fa50b94312ba68a38e1a68a4206476f82a3d3d8a865b185e299d05fc" hash = "001aad372d78d0dd485dfc5f82bffe6b71dd06416cba0d349dbb0dedd048064d"
metafile = true metafile = true
[[files]] [[files]]
file = "mods/justenoughprofessions-neoforge-1-21-1-4-0-5.pw.toml" file = "mods/justenoughprofessions-neoforge-1-21-1-4-0-5.pw.toml"
hash = "9d150709f1edb0721dd9fd15b076f2f26160b4b0bb4f08529be77efb4a017eb7" hash = "9aa5608992c47c6173020a35bf5f98454f3dbb42ed2815c9736379b4019199d1"
metafile = true metafile = true
[[files]] [[files]]
file = "mods/justenoughresources-neoforge-1-21-1-1-6-0-17.pw.toml" file = "mods/justenoughresources-neoforge-1-21-1-1-6-0-17.pw.toml"
hash = "7dac93abb684b45426e5373cbf116345ccdfd20e0ebf8928327599d5dd2c5815" hash = "a49e5661ea3edaeb992675502e2e4a6bc41bc18b439400f340c77ad8d43550b7"
metafile = true metafile = true
[[files]] [[files]]
file = "mods/mousetweaks-neoforge-mc1-21-2-26-1.pw.toml" file = "mods/mousetweaks-neoforge-mc1-21-2-26-1.pw.toml"
hash = "3bf3d4055b6cb753a8988de8b57e2494fc7ce45652d2c68d458fe51274491111" hash = "0a3c27696c5641db806ed2bbe743cb282138365702dc21060a3c888826ea724e"
metafile = true metafile = true

View File

@@ -3,6 +3,6 @@ filename = "balm-neoforge-1.21.1-21.0.58.jar"
side = "both" side = "both"
[download] [download]
url = "http://pack.ulicraft.lan/custom/balm-neoforge-1.21.1-21.0.58.jar" url = "http://pack.ulicraft.net/custom/balm-neoforge-1.21.1-21.0.58.jar"
hash-format = "sha256" hash-format = "sha256"
hash = "aa2463747bad4c2351869226ea7bce7839510dfd2ac387f8d1588b1ce9309c67" hash = "aa2463747bad4c2351869226ea7bce7839510dfd2ac387f8d1588b1ce9309c67"

View File

@@ -3,6 +3,6 @@ filename = "CustomSkinLoader_Universal-14.28.jar"
side = "both" side = "both"
[download] [download]
url = "http://pack.ulicraft.lan/custom/CustomSkinLoader_Universal-14.28.jar" url = "http://pack.ulicraft.net/custom/CustomSkinLoader_Universal-14.28.jar"
hash-format = "sha256" hash-format = "sha256"
hash = "0008fb0a91dd1e84d52162cfe96addb5f6aed3b76d426ea7305d7624e31f1894" hash = "0008fb0a91dd1e84d52162cfe96addb5f6aed3b76d426ea7305d7624e31f1894"

View File

@@ -3,6 +3,6 @@ filename = "inventoryessentials-neoforge-1.21.1-21.1.15.jar"
side = "both" side = "both"
[download] [download]
url = "http://pack.ulicraft.lan/custom/inventoryessentials-neoforge-1.21.1-21.1.15.jar" url = "http://pack.ulicraft.net/custom/inventoryessentials-neoforge-1.21.1-21.1.15.jar"
hash-format = "sha256" hash-format = "sha256"
hash = "b7a5c5526a45256551543419ba2b5d54e56c585d76a645a8cea8cb8ea843ae2c" hash = "b7a5c5526a45256551543419ba2b5d54e56c585d76a645a8cea8cb8ea843ae2c"

View File

@@ -3,6 +3,6 @@ filename = "Jade-1.21.1-NeoForge-15.10.5.jar"
side = "both" side = "both"
[download] [download]
url = "http://pack.ulicraft.lan/custom/Jade-1.21.1-NeoForge-15.10.5.jar" url = "http://pack.ulicraft.net/custom/Jade-1.21.1-NeoForge-15.10.5.jar"
hash-format = "sha256" hash-format = "sha256"
hash = "067bb4b007e1d6f6b79f0afe99c91252aa825472b99a76d33a60d24442f9e92d" hash = "067bb4b007e1d6f6b79f0afe99c91252aa825472b99a76d33a60d24442f9e92d"

View File

@@ -3,6 +3,6 @@ filename = "JadeAddons-1.21.1-NeoForge-6.1.0.jar"
side = "both" side = "both"
[download] [download]
url = "http://pack.ulicraft.lan/custom/JadeAddons-1.21.1-NeoForge-6.1.0.jar" url = "http://pack.ulicraft.net/custom/JadeAddons-1.21.1-NeoForge-6.1.0.jar"
hash-format = "sha256" hash-format = "sha256"
hash = "5f242668ad710092964d4d9afda8a94fa2401665ea13eea67d55d07e4dff8a64" hash = "5f242668ad710092964d4d9afda8a94fa2401665ea13eea67d55d07e4dff8a64"

View File

@@ -3,6 +3,6 @@ filename = "jei-1.21.1-neoforge-19.27.0.340.jar"
side = "both" side = "both"
[download] [download]
url = "http://pack.ulicraft.lan/custom/jei-1.21.1-neoforge-19.27.0.340.jar" url = "http://pack.ulicraft.net/custom/jei-1.21.1-neoforge-19.27.0.340.jar"
hash-format = "sha256" hash-format = "sha256"
hash = "8aaf547432f1b4958239b036356b910692fe40f858c3073d996f56bbf7c99826" hash = "8aaf547432f1b4958239b036356b910692fe40f858c3073d996f56bbf7c99826"

View File

@@ -3,6 +3,6 @@ filename = "JustEnoughProfessions-neoforge-1.21.1-4.0.5.jar"
side = "both" side = "both"
[download] [download]
url = "http://pack.ulicraft.lan/custom/JustEnoughProfessions-neoforge-1.21.1-4.0.5.jar" url = "http://pack.ulicraft.net/custom/JustEnoughProfessions-neoforge-1.21.1-4.0.5.jar"
hash-format = "sha256" hash-format = "sha256"
hash = "b320b47f1791f56df9e1a05138f0e312e6e54541945ff15f2f1fd398cd1d4d9d" hash = "b320b47f1791f56df9e1a05138f0e312e6e54541945ff15f2f1fd398cd1d4d9d"

View File

@@ -3,6 +3,6 @@ filename = "JustEnoughResources-NeoForge-1.21.1-1.6.0.17.jar"
side = "both" side = "both"
[download] [download]
url = "http://pack.ulicraft.lan/custom/JustEnoughResources-NeoForge-1.21.1-1.6.0.17.jar" url = "http://pack.ulicraft.net/custom/JustEnoughResources-NeoForge-1.21.1-1.6.0.17.jar"
hash-format = "sha256" hash-format = "sha256"
hash = "7a47d69b5530704690d5a5f0726cd74a2d6c57df17dd4a8589c4ab5212f91460" hash = "7a47d69b5530704690d5a5f0726cd74a2d6c57df17dd4a8589c4ab5212f91460"

View File

@@ -3,6 +3,6 @@ filename = "MouseTweaks-neoforge-mc1.21-2.26.1.jar"
side = "both" side = "both"
[download] [download]
url = "http://pack.ulicraft.lan/custom/MouseTweaks-neoforge-mc1.21-2.26.1.jar" url = "http://pack.ulicraft.net/custom/MouseTweaks-neoforge-mc1.21-2.26.1.jar"
hash-format = "sha256" hash-format = "sha256"
hash = "68e6f4201c5de97b77929a7215c9552495696ca6a3bf3ae4eacc34e135f6cc8b" hash = "68e6f4201c5de97b77929a7215c9552495696ca6a3bf3ae4eacc34e135f6cc8b"

View File

@@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0"
[index] [index]
file = "index.toml" file = "index.toml"
hash-format = "sha256" hash-format = "sha256"
hash = "2707ae674c7c75371b97cc378ca72abc36bbb513b7db238db111f88a13aa6039" hash = "36d9f52476a127af5837a65e69d25dc1cd9f7e131eb5a76166378351bf40a009"
[versions] [versions]
minecraft = "1.21.1" minecraft = "1.21.1"

View File

@@ -98,7 +98,9 @@ add_one() { # $1 = jar path. Uses NAME (single-jar only), SIDE, FORCE, BASE_DOM
fi fi
hash="$(sha256sum -- "$jar" | cut -d' ' -f1)" 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 cat > "$meta" <<EOF
name = "${name}" name = "${name}"
filename = "${filename}" filename = "${filename}"