mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-31 15:09:07 +07:00
Added automatic build incrementing
This commit is contained in:
17
build.gradle
17
build.gradle
@ -110,17 +110,28 @@ project(":ios") {
|
||||
include "**/*.java"
|
||||
}
|
||||
|
||||
into "ios/src/io/anuke/mindustry/gen"
|
||||
into "core/src/io/anuke/mindustry/gen"
|
||||
}
|
||||
|
||||
doFirst{
|
||||
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 {
|
||||
compile project(":core")
|
||||
|
@ -1,6 +1,7 @@
|
||||
#Tue Nov 20 19:26:13 EST 2018
|
||||
app.version=4.0
|
||||
app.id=io.anuke.mindustry
|
||||
app.mainclass=io.anuke.mindustry.IOSLauncher
|
||||
app.executable=IOSLauncher
|
||||
app.build=27
|
||||
app.build=30
|
||||
app.name=Mindustry
|
||||
|
Reference in New Issue
Block a user