feat: adding download method toggle

This commit is contained in:
Chubby Granny Chaser 2024-05-22 01:06:25 +01:00
commit a240c3ae24
No known key found for this signature in database
33 changed files with 564 additions and 45 deletions

View file

@ -1,5 +1,6 @@
import type { Downloader } from "@shared";
import type { Aria2Status } from "aria2";
import type { Downloader } from "@shared";
import { ProgressInfo, UpdateInfo } from "electron-updater";
export type GameShop = "steam" | "epic";
export type CatalogueCategory = "recently_added" | "trending";
@ -146,3 +147,12 @@ export interface SteamGame {
name: string;
clientIcon: string | null;
}
export type AppUpdaterEvents =
| { type: "error" }
| { type: "checking-for-updates" }
| { type: "update-not-available" }
| { type: "update-available"; info: UpdateInfo }
| { type: "update-downloaded" }
| { type: "download-progress"; info: ProgressInfo }
| { type: "update-cancelled" };