4cc96de806
CI Publish / Validate Gradle Wrapper (push) Successful in 12s
CI Publish / Build Jar (push) Failing after 5s
CI Publish / Make debian-all release (push) Has been skipped
CI Publish / Make linux-assets release (push) Has been skipped
CI Publish / Make linux-x64 release (push) Has been skipped
CI Publish / Make macOS-arm64 release (push) Has been skipped
CI Publish / Make macOS-x64 release (push) Has been skipped
CI Publish / Make windows-x64 release (push) Has been skipped
CI Publish / Make windows-x86 release (push) Has been skipped
CI Publish / release (push) Has been skipped
32 lines
1015 B
Kotlin
32 lines
1015 B
Kotlin
import java.io.BufferedReader
|
|
|
|
/*
|
|
* Copyright (C) Contributors to the Suwayomi project
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
const val MainClass = "suwayomi.tachidesk.MainKt"
|
|
|
|
// should be bumped with each stable release
|
|
val tachideskVersion = System.getenv("ProductVersion") ?: "v0.7.0"
|
|
|
|
val webUIRevisionTag = System.getenv("WebUIRevision") ?: "r983"
|
|
|
|
// counts commits on the master branch
|
|
val tachideskRevision = runCatching {
|
|
System.getenv("ProductRevision") ?: ProcessBuilder()
|
|
.command("git", "rev-list", "HEAD", "--count")
|
|
.start()
|
|
.let { process ->
|
|
process.waitFor()
|
|
val output = process.inputStream.use {
|
|
it.bufferedReader().use(BufferedReader::readText)
|
|
}
|
|
process.destroy()
|
|
"r" + output.trim()
|
|
}
|
|
}.getOrDefault("r0")
|
|
|