Skip to content

Commit

Permalink
CI Builds
Browse files Browse the repository at this point in the history
* Add special case for CI updates.
  • Loading branch information
rumboalla committed Mar 23, 2024
1 parent 68b0126 commit 7a46dc5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ val GitHubApps = listOf(
GitHubApp("exa.lnx.a", "EXALAB", "AnLinux-App"),
GitHubApp("com.menny.android.anysoftkeyboard", "AnySoftKeyboard", "AnySoftKeyboard"),
GitHubApp("org.courville.nova", "nova-video-player", "aos-AVP"),
GitHubApp("com.apkupdater.ci", "rumboalla", "apkupdater", contains(".ci")),
GitHubApp("com.apkupdater.ci", "rumboalla", "apkupdater"),
GitHubApp("com.standardnotes", "standardnotes", "app"),
GitHubApp("com.xBrowserSync.android", "xbrowsersync", "app"),
GitHubApp("org.fossify.applauncher", "FossifyOrg", "App-Launcher"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,13 @@ class GitHubRepository(
currentVersion: String,
extra: Regex?
) = flow {
val releases = service.getReleases(user, repo)
.filter { filterPreRelease(it) }
.filter { findApkAsset(it.assets).isNotEmpty() }
val r = service.getReleases(user, repo)
val releases = if (packageName == "com.apkupdater.ci") {
// TODO: Find a better way to do this
r.filter { it.name.contains("CI-Release-3.x")}
} else {
r.filter { filterPreRelease(it) }.filter { findApkAsset(it.assets).isNotEmpty() }
}

if (releases.isNotEmpty() && Version(filterVersionTag(releases[0].tag_name)) > Version(currentVersion)) {
val app = apps?.getApp(packageName)
Expand Down

0 comments on commit 7a46dc5

Please sign in to comment.