GitHubReleaseFetcher

class GitHubReleaseFetcher(owner: String, repo: String)

Constructors

Link copied to clipboard
constructor(owner: String, repo: String)

Functions

Link copied to clipboard
suspend fun checkForUpdate(onUpdateNeeded: (latestVersion: String, changelog: String) -> Unit)

Checks for an update. If an update is available, executes onUpdateNeeded with the new version and changelog.

Link copied to clipboard

Returns the download link suitable for the current platform.

Link copied to clipboard
suspend fun getLatestRelease(): Release?

Fetches the latest release from the GitHub API using Ktor.