Add support for precise Project Zomboid versioning in builds and images. Include printGameVersion task, improve image tagging, and enhance CI/release workflows for hotfix handling.
ci / image (42, public) (push) Successful in 3m17s

This commit is contained in:
Overlord committed 2026-10-02 17:53:58 +02:00
1 parent c529b04ff0
commit 26ca1b90a2
9 files changed
+137 -34

No files matched your search

+5 -1
View File
@@ -40,7 +40,7 @@ version = "1.2.0"
zomboidForge {
id = "shop"
entrypoint = "com.example.shop.ShopMod"
game("42.21") // only when the mod uses game classes
game("42") // only when the mod uses game classes
dependsOn("economy", "2.1") // other mods: id and minimum version
}
@@ -77,6 +77,10 @@ game jar for mods that declare `game` versions. Default settings go into
The plugin generates `META-INF/zomboidforge/mod.toml` from these settings; a hand-written one
fails the build.
Declare a minor version in `game(...)` only when the mod needs it. A mod declaring `"42.21"`
stops the server after an update to 42.22, while the server checks every game member a mod uses
against the running jar anyway.
### The game jar
Mods that declare `game` versions compile against `projectzomboid.jar`, which cannot be