chore: 修改版本号格式
This commit is contained in:
parent
bb91694edb
commit
ef0b185bdd
|
@ -23,12 +23,12 @@ applicationProperties.load(new FileInputStream(rootProject.file("application.pro
|
||||||
def SHA1 = System.getenv("CIRCLE_SHA1")
|
def SHA1 = System.getenv("CIRCLE_SHA1")
|
||||||
def applicationVersionCode = applicationProperties["versionCode"].toInteger()
|
def applicationVersionCode = applicationProperties["versionCode"].toInteger()
|
||||||
def applicationVersionName = applicationProperties["versionName"]
|
def applicationVersionName = applicationProperties["versionName"]
|
||||||
def isPerVersion = applicationProperties["isPerVersion"] == "true"
|
def isPerVersion = applicationProperties["isPerRelease"] == "true"
|
||||||
if (SHA1 != null) {
|
if (SHA1 != null) {
|
||||||
applicationVersionName = applicationVersionName + ".${SHA1.substring(0, 8)}"
|
applicationVersionName = applicationVersionName + ".${SHA1.substring(0, 7)}"
|
||||||
}
|
}
|
||||||
if (isPerVersion) {
|
if (isPerVersion) {
|
||||||
applicationVersionName = applicationVersionName + "-${applicationProperties["perVersion"]}"
|
applicationVersionName = applicationVersionName + ".${applicationProperties["preReleaseName"]}-${applicationProperties["preReleaseVer"]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
andResGuard {
|
andResGuard {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
versionCode=38201
|
versionCode=38201
|
||||||
versionName=3.8.3
|
versionName=3.8.3
|
||||||
isPerVersion=true
|
isPerRelease=true
|
||||||
perVersion=beta1
|
preReleaseName=beta
|
||||||
|
preReleaseVer=2
|
Loading…
Reference in New Issue