Commit 700e4f16 authored by 胡江林's avatar 胡江林

打包名称格式化

parent 1a9828e2
Pipeline #838 failed with stages
...@@ -2,6 +2,10 @@ plugins { ...@@ -2,6 +2,10 @@ plugins {
id 'com.android.application' id 'com.android.application'
} }
static def releaseTime() {
return new Date().format("yyMMddHH", TimeZone.getTimeZone("GMT+08"))
}
android { android {
compileSdk 32 compileSdk 32
...@@ -25,6 +29,14 @@ android { ...@@ -25,6 +29,14 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8
} }
android.applicationVariants.all { variant ->
variant.outputs.all {
if (variant.buildType.name.equals('release')) {
outputFileName = "${'Daemon'}_${versionName}_${versionCode}_${releaseTime()}_release.apk"
}
}
}
} }
dependencies { dependencies {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment