From 0af17d1dae674e8567d88c3885bee7871f3948f9 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Tue, 16 Dec 2025 15:43:22 -0500 Subject: [PATCH 1/2] this probably works --- src/main/updater/http.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/updater/http.ts b/src/main/updater/http.ts index 0985a8cf7..b5cb36cd4 100644 --- a/src/main/updater/http.ts +++ b/src/main/updater/http.ts @@ -21,6 +21,7 @@ import { IpcEvents } from "@shared/IpcEvents"; import { VENCORD_USER_AGENT } from "@shared/vencordUserAgent"; import { ipcMain } from "electron"; import { closeSync, fsyncSync, openSync, writeFileSync as originalWriteFileSync } from "original-fs"; +import { join } from "path"; import gitHash from "~git-hash"; import gitRemote from "~git-remote"; @@ -72,9 +73,10 @@ async function applyUpdates() { if (!PendingUpdate) return true; const data = await fetchBuffer(PendingUpdate); - originalWriteFileSync(__dirname, data); + const asarPath = join(__dirname, ASAR_FILE); + originalWriteFileSync(asarPath, data); - const fd = openSync(__dirname, "r"); + const fd = openSync(asarPath, "r"); fsyncSync(fd); closeSync(fd); From 260c793c190766cfa574ffa58e7fc9b6506b28f3 Mon Sep 17 00:00:00 2001 From: thororen <78185467+thororen1234@users.noreply.github.com> Date: Tue, 16 Dec 2025 15:52:41 -0500 Subject: [PATCH 2/2] update readme really for testing --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index da183f8fd..47e1bfcc0 100644 --- a/README.md +++ b/README.md @@ -68,17 +68,19 @@ Build Equicord: pnpm build ``` +Inject Equicord into your desktop client: + +```shell +pnpm inject +``` + Build Equicord for web: ```shell pnpm buildWeb ``` -Inject Equicord into your client: - -```shell -pnpm inject -``` +To add Equicord's web extension after building it simply find the correct zip in the dist directory and follow the guide on how to install a custom extension for your browser if its supported ## Credits