Allow building without git access (#98)

Just something SY needs...
This commit is contained in:
Syer10
2021-05-25 18:09:25 -04:00
committed by GitHub
parent 37bff6c76c
commit 1729847937
+3 -1
View File
@@ -96,7 +96,8 @@ sourceSets {
val tachideskVersion = "v0.3.9"
// counts commit count on master
val tachideskRevision = Runtime
val tachideskRevision = runCatching {
Runtime
.getRuntime()
.exec("git rev-list HEAD --count")
.let { process ->
@@ -108,6 +109,7 @@ val tachideskRevision = Runtime
"r" + output.trim()
}
}.getOrDefault("r0")
buildConfig {
clsName = "BuildConfig"