mirror of
https://github.com/null2264/yokai.git
synced 2025-06-20 18:24:42 +00:00
refactor: Simplify beta version format
This commit is contained in:
parent
93709836e7
commit
4a8cf8d24d
1 changed files with 2 additions and 2 deletions
|
@ -35,12 +35,12 @@ val _versionName = "1.8.5"
|
|||
val betaCount by lazy {
|
||||
val betaTags = runCommand("git tag -l --sort=refname v${_versionName}-b*")
|
||||
|
||||
String.format("%02d", if (betaTags.isNotEmpty()) {
|
||||
if (betaTags.isNotEmpty()) {
|
||||
val betaTag = betaTags.split("\n").last().substringAfter("-b").toIntOrNull()
|
||||
((betaTag ?: 0) + 1)
|
||||
} else {
|
||||
1
|
||||
})
|
||||
}.toString()
|
||||
}
|
||||
val commitCount by lazy { runCommand("git rev-list --count HEAD") }
|
||||
val commitHash by lazy { runCommand("git rev-parse --short HEAD") }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue