diff --git a/scripts/build/build.mts b/scripts/build/build.mts index 243381b..9a1165d 100644 --- a/scripts/build/build.mts +++ b/scripts/build/build.mts @@ -22,7 +22,7 @@ const NodeCommonOpts: BuildOptions = { ...CommonOpts, format: "cjs", platform: "node", - external: ["electron"], + external: ["electron", "original-fs"], target: ["esnext"], define: { IS_DEV: JSON.stringify(isDev) diff --git a/src/main/utils/http.ts b/src/main/utils/http.ts index baee81e..5ec05fa 100644 --- a/src/main/utils/http.ts +++ b/src/main/utils/http.ts @@ -4,7 +4,7 @@ * Copyright (c) 2023 Vendicated and Vencord contributors */ -import { createWriteStream } from "fs"; +import { createWriteStream } from "original-fs"; import { Readable } from "stream"; import { pipeline } from "stream/promises"; import { setTimeout } from "timers/promises"; diff --git a/src/main/utils/vencordLoader.ts b/src/main/utils/vencordLoader.ts index 30fa9df..fe2a760 100644 --- a/src/main/utils/vencordLoader.ts +++ b/src/main/utils/vencordLoader.ts @@ -37,7 +37,7 @@ export async function githubGet(endpoint: string) { export async function downloadVencordAsar() { await downloadFile( - "https://github.com/Vendicated/Vencord/releases/latest/download/desktop.asar", + "https://github.com/Vendicated/Vencord/releases/latest/download/vesktop.asar", VENCORD_ASAR_FILE, {}, { retryOnNetworkError: true }