fixes
This commit is contained in:
parent
02f386db2d
commit
94a0c4dc10
3 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@ const NodeCommonOpts: BuildOptions = {
|
||||||
...CommonOpts,
|
...CommonOpts,
|
||||||
format: "cjs",
|
format: "cjs",
|
||||||
platform: "node",
|
platform: "node",
|
||||||
external: ["electron"],
|
external: ["electron", "original-fs"],
|
||||||
target: ["esnext"],
|
target: ["esnext"],
|
||||||
define: {
|
define: {
|
||||||
IS_DEV: JSON.stringify(isDev)
|
IS_DEV: JSON.stringify(isDev)
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* Copyright (c) 2023 Vendicated and Vencord contributors
|
* Copyright (c) 2023 Vendicated and Vencord contributors
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { createWriteStream } from "fs";
|
import { createWriteStream } from "original-fs";
|
||||||
import { Readable } from "stream";
|
import { Readable } from "stream";
|
||||||
import { pipeline } from "stream/promises";
|
import { pipeline } from "stream/promises";
|
||||||
import { setTimeout } from "timers/promises";
|
import { setTimeout } from "timers/promises";
|
||||||
|
|
|
@ -37,7 +37,7 @@ export async function githubGet(endpoint: string) {
|
||||||
|
|
||||||
export async function downloadVencordAsar() {
|
export async function downloadVencordAsar() {
|
||||||
await downloadFile(
|
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,
|
VENCORD_ASAR_FILE,
|
||||||
{},
|
{},
|
||||||
{ retryOnNetworkError: true }
|
{ retryOnNetworkError: true }
|
||||||
|
|
Loading…
Reference in a new issue