chore(build): 更改了版本号格式

This commit is contained in:
HuanChengFly 2020-04-05 21:49:14 +08:00
parent 668e062327
commit e39f577583
3 changed files with 8 additions and 2 deletions

BIN
README.md

Binary file not shown.

View File

@ -23,8 +23,12 @@ applicationProperties.load(new FileInputStream(rootProject.file("application.pro
def SHA1 = System.getenv("CIRCLE_SHA1")
def applicationVersionCode = applicationProperties["versionCode"].toInteger()
def applicationVersionName = applicationProperties["versionName"]
def isPerVersion = applicationProperties["isPerVersion"] == "true"
if (SHA1 != null) {
applicationVersionName = applicationVersionName + "-${SHA1.substring(0, 8)}"
applicationVersionName = applicationVersionName + ".${SHA1.substring(0, 8)}"
}
if (isPerVersion) {
applicationVersionName = applicationVersionName + "-${applicationProperties["perVersion"]}"
}
andResGuard {

View File

@ -1,2 +1,4 @@
versionCode=38006
versionName=3.8.1-beta
versionName=3.8.1
isPerVersion=true
perVersion=beta1