diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fdf9554a..58402630 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -85,7 +85,7 @@ jobs: - name: Upload Equicord if: github.repository == 'Equicord/Equicord' run: | - gh release upload latest --clobber dist/* + gh release upload latest --clobber dist/release/* - name: Upload Plugins JSON to Ignore repo if: github.repository == 'Equicord/Equicord' diff --git a/scripts/runInstaller.mjs b/scripts/runInstaller.mjs index b1771e99..4fb9cc78 100644 --- a/scripts/runInstaller.mjs +++ b/scripts/runInstaller.mjs @@ -124,6 +124,7 @@ try { env: { ...process.env, EQUICORD_USER_DATA_DIR: BASE_DIR, + EQUICORD_ASAR_FILE: join(BASE_DIR, "dist/desktop.asar"), EQUICORD_DEV_INSTALL: "1" } }); diff --git a/src/preload.ts b/src/preload.ts index 7c61a181..5d9dd180 100644 --- a/src/preload.ts +++ b/src/preload.ts @@ -19,7 +19,7 @@ import { debounce } from "@shared/debounce"; import { contextBridge, webFrame } from "electron"; import { readFileSync, watch } from "fs"; -import { join } from "path"; +import { dirname, join } from "path"; import VencordNative from "./VencordNative"; @@ -45,7 +45,7 @@ if (location.protocol !== "data:") { if (IS_DEV) { // persistent means keep process running if watcher is the only thing still running // which we obviously don't want - watch(rendererCss, { persistent: false }, () => { + watch(dirname(rendererCss), { persistent: false }, () => { document.getElementById("vencord-css-core")!.textContent = readFileSync(rendererCss, "utf-8"); }); }