mirror of
https://github.com/DrBeef/JKXR.git
synced 2025-03-02 07:12:36 +00:00
Package the assets as part of the build (thanks to @MuadDib)
This commit is contained in:
parent
eed4ea9e15
commit
0578434775
1 changed files with 17 additions and 1 deletions
|
@ -63,4 +63,20 @@ buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
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])
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue