微操
This commit is contained in:
2 files changed
+3
-1
No files matched your search
+2
-1
@@ -23,13 +23,14 @@ ext {
|
|||||||
versionMajor = versionProps['VERSION_MAJOR'].toInteger()
|
versionMajor = versionProps['VERSION_MAJOR'].toInteger()
|
||||||
versionMinor = versionProps['VERSION_MINOR'].toInteger()
|
versionMinor = versionProps['VERSION_MINOR'].toInteger()
|
||||||
versionPatch = versionProps['VERSION_PATCH'].toInteger()
|
versionPatch = versionProps['VERSION_PATCH'].toInteger()
|
||||||
|
versionSuffix = versionProps['VERSION_SUFFIX'] ?: ""
|
||||||
}
|
}
|
||||||
|
|
||||||
def name = "legado"
|
def name = "legado"
|
||||||
def gitCommits = Integer.parseInt('git rev-list HEAD --count'.execute().text.trim())
|
def gitCommits = Integer.parseInt('git rev-list HEAD --count'.execute().text.trim())
|
||||||
|
|
||||||
ext.versionBuild = gitCommits
|
ext.versionBuild = gitCommits
|
||||||
ext.versionName = "${ext.versionMajor}.${ext.versionMinor}.${ext.versionPatch}"
|
ext.versionName = "${ext.versionMajor}.${ext.versionMinor}.${ext.versionPatch}${ext.versionSuffix}"
|
||||||
|
|
||||||
def getGitCommitHash() {
|
def getGitCommitHash() {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
VERSION_MAJOR=3
|
VERSION_MAJOR=3
|
||||||
VERSION_MINOR=25
|
VERSION_MINOR=25
|
||||||
VERSION_PATCH=10
|
VERSION_PATCH=10
|
||||||
|
VERSION_SUFFIX=-beta.1
|
||||||
Reference in new issue
Block a user