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
ci / image (42, public) (push) Successful in 3m17s
This commit is contained in:
1 parent
c529b04ff0
commit
26ca1b90a2
9 files changed
+137
-34
No files matched your search
@@ -60,3 +60,17 @@ tasks.register<JavaExec>("patchServerJar") {
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
// Used by ci/release.sh (Dockerfile stage game-version) to name the image before the full build.
|
||||
tasks.register<JavaExec>("printGameVersion") {
|
||||
description = "Prints the game version of the server jar (pz.jar)."
|
||||
group = "help"
|
||||
|
||||
val serverJar = projectZomboid.serverJar
|
||||
|
||||
classpath = sourceSets.main.get().runtimeClasspath
|
||||
mainClass = "dev.overlord.zomboidforge.patcher.GameVersionReader"
|
||||
argumentProviders.add(CommandLineArgumentProvider {
|
||||
listOf(serverJar.get().asFile.absolutePath)
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user