Skip to content

Commit

Permalink
Optimize output apk name
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Jun 13, 2024
1 parent 0de9ba5 commit abbcb63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ allprojects {
}
}
}
final def buildTime = new Date().format("yyyyMMddHHmm")

final def buildCommit = providers.exec {
commandLine('git', 'rev-parse', '--short=7', 'HEAD')
Expand Down Expand Up @@ -146,7 +147,7 @@ android {

applicationVariants.configureEach { variant ->
variant.outputs.configureEach {
outputFileName = "Lawnchair ${variant.versionName}.apk"
outputFileName = "Lawnchair-${versionString}-${buildTime}-${buildCommit}.apk"
}
}

Expand Down

0 comments on commit abbcb63

Please sign in to comment.