feat: adding possibility to create steam shortcut

This commit is contained in:
Chubby Granny Chaser
2025-05-13 22:57:33 +01:00
parent 00065ab0c9
commit 86de5aa89e
14 changed files with 342 additions and 24 deletions

View File

@@ -191,6 +191,8 @@ contextBridge.exposeInMainWorld("electron", {
ipcRenderer.invoke("extractGameDownload", shop, objectId),
getDefaultWinePrefixSelectionPath: () =>
ipcRenderer.invoke("getDefaultWinePrefixSelectionPath"),
createSteamShortcut: (shop: GameShop, objectId: string) =>
ipcRenderer.invoke("createSteamShortcut", shop, objectId),
onGamesRunning: (
cb: (
gamesRunning: Pick<GameRunning, "id" | "sessionDurationInMillis">[]