Added commit hash to version strings

This commit is contained in:
snake-4
2024-03-26 19:49:18 +01:00
parent b63132e9f8
commit b3d8493612
3 changed files with 12 additions and 4 deletions

View File

@@ -4,6 +4,15 @@ plugins {
alias(libs.plugins.agp.lib) apply false
}
val commitHash: String by extra({
val stdout = ByteArrayOutputStream()
rootProject.exec {
commandLine("git", "rev-parse", "--short", "HEAD")
standardOutput = stdout
}
stdout.toString().trim()
})
val moduleId by extra("zygisk-assistant")
val moduleName by extra("Zygisk Assistant")
val verName by extra("v2.0.0")