diff --git a/src/electron/helpers/ipc/global.ts b/src/electron/helpers/ipc/global.ts index a2b066364..d2405fdb9 100644 --- a/src/electron/helpers/ipc/global.ts +++ b/src/electron/helpers/ipc/global.ts @@ -14,6 +14,7 @@ import { import type { VectorStoreDocument } from "@captn/utils/types"; import { BrowserWindow, dialog, ipcMain } from "electron"; import { download } from "electron-dl"; +import type ElectronStore from "electron-store"; import { execa } from "execa"; import { v4 } from "uuid"; @@ -362,11 +363,15 @@ ipcMain.handle( ); downloadsStore.set(item.id, DownloadState.DONE); const keyPath = item.destination.replaceAll("/", "."); - pushToStore(inventoryStore, keyPath, { - id: item.id, - modelPath, - label: item.label, - }); + pushToStore( + inventoryStore as unknown as ElectronStore>, + keyPath, + { + id: item.id, + modelPath, + label: item.label, + } + ); if (apps[item.appId]) { apps[item.appId]?.webContents.send("downloadComplete", true); } diff --git a/src/electron/helpers/ipc/install.ts b/src/electron/helpers/ipc/install.ts index 9791f33cd..0c06c5f8e 100644 --- a/src/electron/helpers/ipc/install.ts +++ b/src/electron/helpers/ipc/install.ts @@ -6,7 +6,6 @@ import { buildKey } from "#/build-key"; import { ID } from "#/enums"; import manifest from "#/manifest.json"; import type { Resource } from "#/types/install"; -import type { Manifest } from "#/types/manifest"; import { appSettingsStore } from "@/stores"; import { getCaptainData, getCaptainDownloads, getDirectory } from "@/utils/path-helpers"; import { unpack } from "@/utils/unpack"; @@ -19,7 +18,7 @@ ipcMain.on(buildKey([ID.INSTALL], { suffix: ":start" }), async _event => { } // Get the needed updates - const updates: Resource[] = checkUpdates(manifest as Manifest, "windows"); + const updates: Resource[] = checkUpdates(manifest, "windows"); try { const items: Promise[] = [];