Some checks failed
- M2: VideoAnchorRenderer draws width\u00d7height quad oriented by facing - M3: VideoBackend interface + JavaCV (reflection) and WaterMedia (probe) backends - M4: VideoConfigScreen GUI + 4 typed payloads + NBT persistence via ReadView/WriteView - M5: stick item useOnBlock place/edit, AttackBlockCallback delete, /videoPlace /videoDelete /videoMute - M6: per-tick distance attenuation gain = volume * clamp(1 - d/16, 0, 1), mute zeroes gain - M7: WatermediaProbe (reflection-only; reports unavailable until v2 supports 1.21.6+) - M8: multi-version build script (1.21.6/1.21.7/1.21.8) + Gitea Actions matrix workflow
33 lines
891 B
Bash
Executable File
33 lines
891 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Build the mod against all supported MC versions and collect jars under build/multiver/.
|
|
# Uses gradle property overrides so we don't have to maintain three settings.gradle copies.
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
OUT=build/multiver
|
|
rm -rf "$OUT"
|
|
mkdir -p "$OUT"
|
|
|
|
build_one() {
|
|
local mc="$1" yarn="$2" fab="$3"
|
|
echo "==> Building for MC $mc (yarn=$yarn, fabric-api=$fab)"
|
|
./gradlew --no-daemon \
|
|
-Pminecraft_version="$mc" \
|
|
-Pyarn_mappings="$yarn" \
|
|
-Pfabric_version="$fab" \
|
|
build
|
|
# main jar = the one without "-sources"
|
|
local jar
|
|
jar=$(ls build/libs/video_player-*.jar | grep -v -- '-sources' | head -1)
|
|
cp "$jar" "$OUT/video_player-mc${mc}.jar"
|
|
}
|
|
|
|
build_one 1.21.6 1.21.6+build.1 0.120.1+1.21.6
|
|
build_one 1.21.7 1.21.7+build.8 0.129.0+1.21.7
|
|
build_one 1.21.8 1.21.8+build.1 0.136.1+1.21.8
|
|
|
|
echo
|
|
echo "All jars:"
|
|
ls -la "$OUT"
|