mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
tweak gradle-built apk name
This commit is contained in:
parent
83fed4da91
commit
929c4c811b
1 changed files with 5 additions and 4 deletions
|
@ -148,12 +148,13 @@ android {
|
||||||
abortOnError false
|
abortOnError false
|
||||||
}
|
}
|
||||||
|
|
||||||
def gitrev = "git describe --tags".execute().text.trim()
|
def gitrev = "git describe --tags --dirty".execute().text.trim()
|
||||||
applicationVariants.all { variant ->
|
applicationVariants.all { variant ->
|
||||||
variant.outputs.each { output ->
|
variant.outputs.each { output ->
|
||||||
output.outputFile =
|
def newName = output.outputFile.name
|
||||||
new File(output.outputFile.parent,
|
newName = newName.replace(".apk","-${gitrev}.apk")
|
||||||
output.outputFile.name.replace(".apk", "-${gitrev}.apk"))
|
newName = newName.replace("app-","")
|
||||||
|
output.outputFile = new File(output.outputFile.parent, newName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue