fix: ignore fdroid builds in beta

This commit is contained in:
rebelonion 2024-02-08 08:15:29 -06:00
parent c9699ba1fc
commit f088b90964

View file

@ -39,7 +39,7 @@ object AppUpdater {
.parsed<JsonArray>().map {
Mapper.json.decodeFromJsonElement<GithubResponse>(it)
}
val r = res.filter { it.prerelease }.maxByOrNull {
val r = res.filter { it.prerelease }.filter { !it.tagName.contains("fdroid") }.maxByOrNull {
it.timeStamp()
} ?: throw Exception("No Pre Release Found")
val v = r.tagName.substringAfter("v", "")