Added automatic build incrementing

This commit is contained in:
Anuken
2018-11-20 19:28:26 -05:00
parent 5ced5ce253
commit 7c073f76ae
2 changed files with 16 additions and 4 deletions

View File

@@ -110,17 +110,28 @@ project(":ios") {
include "**/*.java" include "**/*.java"
} }
into "ios/src/io/anuke/mindustry/gen" into "core/src/io/anuke/mindustry/gen"
} }
doFirst{ doFirst{
delete{ delete{
delete "ios/src/io/anuke/mindustry/gen/" delete "core/src/io/anuke/mindustry/gen/"
} }
} }
} }
//build.dependsOn(copyGen) task incrementConfig{
def vfile = file('robovm.properties')
def props = new Properties()
props.load(new FileInputStream(vfile))
props['app.build'] = (props['app.build'].toInteger() + 1)+""
props.store(vfile.newWriter(), null)
}
build.dependsOn(incrementConfig)
build.dependsOn(copyGen)
dependencies { dependencies {
compile project(":core") compile project(":core")

View File

@@ -1,6 +1,7 @@
#Tue Nov 20 19:26:13 EST 2018
app.version=4.0 app.version=4.0
app.id=io.anuke.mindustry app.id=io.anuke.mindustry
app.mainclass=io.anuke.mindustry.IOSLauncher app.mainclass=io.anuke.mindustry.IOSLauncher
app.executable=IOSLauncher app.executable=IOSLauncher
app.build=27 app.build=30
app.name=Mindustry app.name=Mindustry