Package the assets as part of the build (thanks to @MuadDib)

This commit is contained in:
Simon 2023-02-26 19:49:51 +00:00
parent eed4ea9e15
commit 0578434775

View file

@ -63,4 +63,20 @@ buildscript {
repositories {
google()
}
}
}
task packJOResources(type: Zip) {
from "../../z_vr_assets/"
destinationDir file("../../assets/")
archiveName "z_vr_assets.pk3"
}
task packJAResources(type: Zip) {
from "../../z_vr_assets_jka/"
destinationDir file("../../assets/")
archiveName "z_vr_assets_jka.pk3"
}
tasks.matching {it.name.startsWith("assemble")}.all { Task task ->
task.dependsOn([packJOResources, packJAResources])
}