204 int maxResults = 20);
213 bool includePrerelease =
false);
332 std::unique_ptr<Impl> impl_;
335 std::vector<RunnerRelease> fetchGitHubReleases(
const std::string& owner,
337 bool includePrerelease,
int maxResults);
340 bool downloadFile(
const std::string& url,
const std::filesystem::path& dest,
343 bool verifyChecksum(
const std::filesystem::path& file,
const std::string& expected,
344 const std::string& type);
346 bool extractArchive(
const std::filesystem::path& archive,
const std::filesystem::path& dest,
350 static std::string getGitHubOwner(
RunnerType type);
351 static std::string getGitHubRepo(
RunnerType type);
352 std::filesystem::path getInstallDir(
RunnerType type)
const;
std::function< void(const DownloadProgress &)> ProgressCallback
bool uninstallRunner(RunnerType type, const std::string &version)
Uninstall a runner version.
bool isInstalled(RunnerType type, const std::string &version) const
Check if a specific version is installed.
bool downloadRunner(const RunnerRelease &release, const ProgressCallback &progressCallback=nullptr)
Download and install a runner.
std::function< void(const std::vector< RunnerRelease > &)> ReleaseCallback
void setInstallPath(RunnerType type, const std::filesystem::path &path)
Set custom installation directory.
void refreshInstalled()
Refresh installed runners list.
std::future< bool > downloadRunnerAsync(const RunnerRelease &release, const ProgressCallback &progressCallback=nullptr)
Download and install a runner asynchronously.
std::vector< RunnerRelease > getAvailableReleases(RunnerType type, bool includePrerelease=false, int maxResults=20)
Get available releases for a runner type.
bool isDownloading(RunnerType type) const
Check if a download is in progress.
void clearCache()
Clear the releases cache.
void getAvailableReleasesAsync(RunnerType type, const ReleaseCallback &callback, bool includePrerelease=false)
Get available releases asynchronously.
static std::filesystem::path getDefaultInstallPath(RunnerType type)
Get default installation directory for a runner type.
int cleanupOldVersions(RunnerType type, int keepCount=3)
Clean up old versions, keeping newest N.
void cancelDownload(RunnerType type)
Cancel an ongoing download.
std::optional< RunnerRelease > getLatestRelease(RunnerType type, bool includePrerelease=false)
Get the latest release for a runner type.
std::vector< InstalledRunner > getInstalledRunners() const
Get all installed runners.
std::string runnerStatusName(RunnerStatus status)
Convenience: human-readable status string ("active" / "archived" / "manual-only").
RunnerType
Types of compatibility tools that can be downloaded.
@ UMU
Unified Proton Runner.
@ ProtonGE
GloriousEggroll Proton builds (active).
@ Luxtorpeda
Native game engine replacements.
@ ProtonTKG
TkGlitch custom Proton builds (no usable GitHub releases — AUR / PKGBUILD only).
@ WineGE
GloriousEggroll Wine builds for Lutris (archived 2025-07; final tag GE-Proton8-26).
@ DXVK
DirectX 9/10/11 to Vulkan.
@ VKD3DProton
DirectX 12 to Vulkan.
std::string runnerTypeName(RunnerType type)
Get human-readable name for runner type.
RunnerStatus runnerStatus(RunnerType type)
Get the upstream maintenance status for a runner type.
RunnerStatus
Upstream maintenance status of a runner type.
@ Active
Repo actively publishes releases on GitHub.
@ Archived
Repo is archived but the final release is still usable.
@ ManualOnly
No usable GitHub releases — install via distro packaging.
Progress information for downloads.
std::string getStateStr() const
std::string currentFile
Current file being processed.
std::string errorMessage
Error message if failed.
Information about an installed runner.
std::filesystem::path path
Installation path.
std::chrono::system_clock::time_point installDate
bool isActive
Whether this is the currently selected runner.
std::string version
Version string.
std::string name
Display name.
int64_t sizeBytes
Size on disk.
Information about an available runner release.
std::string releaseDate
Release date ISO string.
std::string checksum
SHA512 or SHA256 checksum if available.
bool isInstalled
Whether this version is currently installed.
int64_t size
Download size in bytes.
bool isArchived
True when sourced from an archived upstream repo (Wine-GE).
std::string releaseNotes
Release notes/changelog.
std::string checksumType
"sha512" or "sha256"
std::string tag
GitHub release tag.
std::string downloadUrl
Direct download URL.
bool isPrerelease
Whether this is a pre-release.
std::string getSizeStr() const
std::string version
Version string (e.g., "GE-Proton9-20").
std::filesystem::path installPath
Path if installed.