Upload files to "/"

This commit is contained in:
aidan committed 2026-11-11 01:20:27 +02:00
1 parent 06269f1f65
commit 6d94493e58
4 files changed
+339 -220

No files matched your search

+8 -6
View File
@@ -12,13 +12,15 @@ if [ -n "${JAVA_HOME:-}" ]; then
PATH="$JAVA_HOME/bin:$PATH"
export PATH
fi
./gradlew remapJar --console=plain
./gradlew bundlePayloads "-PpythonExecutable=${PYTHON:-python3}" --console=plain
unset PRESTIGE_PAYLOAD
export PRESTIGE_BUNDLE="$PWD/build/bundle"
cargo build --release --manifest-path injector/Cargo.toml
mkdir -p dist
cp -f "injector/target/release/OpenPrestigeInjector" "injector/target/release/$LIB" dist/
chmod +x dist/OpenPrestigeInjector
for jar in build/libs/prestige-*.jar; do
case "$jar" in *-dev.jar|*-sources.jar) continue ;; esac
cp -f "$jar" dist/
done
echo "Done: dist/OpenPrestigeInjector + dist/$LIB + Fabric mod JAR"
VERSION=$(sed -n 's/^mod_version=//p' gradle.properties)
case "$(uname -s)" in Linux) PLATFORM=linux ;; Darwin) PLATFORM=macos ;; esac
case "$(uname -m)" in x86_64) ARCH=x86_64 ;; arm64|aarch64) ARCH=aarch64 ;; *) echo 'Unsupported architecture' >&2; exit 1 ;; esac
"${PYTHON:-python3}" scripts/package_release.py offline dist "$VERSION" "$PLATFORM-$ARCH" dist/OpenPrestigeInjector "dist/$LIB" build/bundle/common.jar
echo "Done: dist contains the offline multi-version host bundle"