Add support for anchors, hooks, and hook injection in patching logic with comprehensive tests.
ci / image (42.21, public) (push) Successful in 1m43s

Added onServerStarted Hook and Patch.
This commit is contained in:
Overlord committed 2026-09-30 21:59:22 +02:00
1 parent e13132c202
commit 2b94a49352
19 files changed
+972 -62

No files matched your search

+4
View File
@@ -15,6 +15,8 @@
# FORGE_VERSION ZomboidForge version (jar manifest, image label); set by ci/release.sh.
# Default: 0.0.0-prerelease
# STEAM_BUILDID Image label only; set by ci/release.sh
# DISABLED_PATCHES Comma-separated simple class names of build-time patches to skip
# (debug builds only; ci/release.sh never sets it)
ARG PZ_BRANCH=public
ARG PZ_VERSION=""
@@ -55,10 +57,12 @@ COPY --from=server /server/java/projectzomboid.jar /pz/projectzomboid.jar
# the build the fallback version 0.0.0-prerelease (the image has no git history).
ARG PZ_VERSION
ARG FORGE_VERSION
ARG DISABLED_PATCHES=""
RUN ./gradlew --no-daemon \
-Ppz.jar=/pz/projectzomboid.jar \
${PZ_VERSION:+-Ppz.version=${PZ_VERSION}} \
${FORGE_VERSION:+-Pversion=${FORGE_VERSION}} \
${DISABLED_PATCHES:+-Pzf.disabledPatches=${DISABLED_PATCHES}} \
build :patcher:patchServerJar
# --- Stage 3: runtime ------------------------------------------------------------