feat: create start menu shortcut on Windows

This commit is contained in:
Zamitto
2025-05-02 08:08:58 -03:00
parent f20314de57
commit a922d9a166
10 changed files with 57 additions and 29 deletions

View File

@@ -16,6 +16,7 @@ import type {
GameAchievement,
Theme,
FriendRequestSync,
ShortcutLocation,
} from "@types";
import type { AuthPage, CatalogueCategory } from "@shared";
import type { AxiosProgressEvent } from "axios";
@@ -122,8 +123,11 @@ contextBridge.exposeInMainWorld("electron", {
),
addGameToLibrary: (shop: GameShop, objectId: string, title: string) =>
ipcRenderer.invoke("addGameToLibrary", shop, objectId, title),
createGameShortcut: (shop: GameShop, objectId: string) =>
ipcRenderer.invoke("createGameShortcut", shop, objectId),
createGameShortcut: (
shop: GameShop,
objectId: string,
location: ShortcutLocation
) => ipcRenderer.invoke("createGameShortcut", shop, objectId, location),
updateExecutablePath: (
shop: GameShop,
objectId: string,