Added automatic build incrementing
This commit is contained in:
17
build.gradle
17
build.gradle
@@ -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")
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user