#!/usr/bin/env bash # Disposable integration fixtures; no runtime changes or deployment. set -euo pipefail task_root=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd) task_dir="$task_root/.tools/repro-neoforge-variants" mkdir "$task_dir" task_packwiz=("$task_root/.tools/packwiz/packwiz" --cache "$task_root/.tools/packwiz/cache" --config "$task_root/.tools/packwiz/config.toml") cp -a "$task_root/pack" "$task_dir/update-pack" cd "$task_dir/update-pack" sed -i 's/^version = ".*"$/version = "0.0.2"/' pack.toml printf 'neoforge-pack-v2\n' > config/spike-marker.txt mkdir -p defaultconfigs world/datapacks cp -a "$task_root/testdata/spike-datapack" world/datapacks/phase0 printf 'removeErroringEntities = true\n' > defaultconfigs/neoforge-server.toml "${task_packwiz[@]}" modrinth add --project-id TyCTlI4b --version-id pJxNzk4X -y "${task_packwiz[@]}" refresh bash "$task_root/scripts/spike-build.sh" "$PWD" cp -a "$task_root/pack" "$task_dir/loader-only-pack" cd "$task_dir/loader-only-pack" sed -i 's/^version = ".*"$/version = "0.0.3"/' pack.toml printf 'neoforge-loader-only-v3\n' > config/spike-marker.txt "${task_packwiz[@]}" remove sophisticated-backpacks -y "${task_packwiz[@]}" remove sophisticated-core -y "${task_packwiz[@]}" remove mouse-tweaks -y "${task_packwiz[@]}" refresh bash "$task_root/scripts/spike-build.sh" "$PWD"