forked from RepoMirrors/kami-blue
Add new args (mkdir, rmold and copy)
This commit is contained in:
parent
3564cd4a89
commit
9012823d40
34
build.gradle
34
build.gradle
|
@ -1,3 +1,37 @@
|
|||
// debugging
|
||||
|
||||
task testprint {
|
||||
doLast {
|
||||
println 'testuwu'
|
||||
}
|
||||
}
|
||||
|
||||
// copy
|
||||
// make folders for copy
|
||||
|
||||
task mkdir {
|
||||
doLast {
|
||||
mkdir "../../.minecraft/mods/1.12.2"
|
||||
}
|
||||
}
|
||||
|
||||
// delete old versions
|
||||
|
||||
task rmold(type: Delete) {
|
||||
delete fileTree("../../.minecraft/mods/1.12.2").matching {
|
||||
include "KAMI*.jar"
|
||||
}
|
||||
}
|
||||
|
||||
// copy file
|
||||
|
||||
task copy(type: Copy) {
|
||||
from file("build/libs/KAMI-b9-release.jar")
|
||||
into file("../../.minecraft/mods/1.12.2/")
|
||||
}
|
||||
|
||||
// forge's stuff
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
jcenter()
|
||||
|
|
Loading…
Reference in New Issue