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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"