This commit is contained in:
Vendicated 2024-07-19 17:58:32 +02:00
parent 02f386db2d
commit 94a0c4dc10
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
3 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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";

View file

@ -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 }