From abbcb63e91e5e70857754ebc8ce1e3ce68782ea3 Mon Sep 17 00:00:00 2001 From: Goooler Date: Thu, 13 Jun 2024 10:43:32 +0800 Subject: [PATCH] Optimize output apk name --- build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 6ba159bea85..c96892c3c36 100644 --- a/build.gradle +++ b/build.gradle @@ -114,6 +114,7 @@ allprojects { } } } +final def buildTime = new Date().format("yyyyMMddHHmm") final def buildCommit = providers.exec { commandLine('git', 'rev-parse', '--short=7', 'HEAD') @@ -146,7 +147,7 @@ android { applicationVariants.configureEach { variant -> variant.outputs.configureEach { - outputFileName = "Lawnchair ${variant.versionName}.apk" + outputFileName = "Lawnchair-${versionString}-${buildTime}-${buildCommit}.apk" } }