Remove artificial +4200 offset from coreCommitCount

This commit is contained in:
NkBe 2026-03-06 22:52:17 +08:00
parent db64adde94
commit 46df4e85cf
No known key found for this signature in database
GPG Key ID: 9FACEE0DB6DF678E
1 changed files with 2 additions and 2 deletions

View File

@ -37,13 +37,13 @@ val (coreCommitCount, coreLatestTag) = FileRepositoryBuilder().setGitDir(rootPro
val coreCommitCount = val coreCommitCount =
git.log() git.log()
.add(repo.refDatabase.exactRef("HEAD").objectId) .add(repo.refDatabase.exactRef("HEAD").objectId)
.call().count() + 4200 .call().count()
val ver = git.describe() val ver = git.describe()
.setTags(true) .setTags(true)
.setAbbrev(0).call().removePrefix("v") .setAbbrev(0).call().removePrefix("v")
coreCommitCount to ver coreCommitCount to ver
} }
}.getOrNull() ?: (1 to "1.0") }.getOrNull() ?: (1145 to "1.0")
// sync from https://github.com/JingMartix/LSPosed/blob/master/build.gradle.kts // sync from https://github.com/JingMartix/LSPosed/blob/master/build.gradle.kts
val defaultManagerPackageName by extra("org.lsposed.npatch") val defaultManagerPackageName by extra("org.lsposed.npatch")