From 445dfce4a89e12e5b6a77f196f2a687bd02bfe6b Mon Sep 17 00:00:00 2001 From: Vendicated Date: Fri, 19 Jul 2024 02:57:11 +0200 Subject: [PATCH 1/3] fix css watch --- src/preload.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); }); } From 839b62c2d987d8bf85d6febf0dab2485c19dd571 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Fri, 19 Jul 2024 03:29:44 +0200 Subject: [PATCH 2/3] update runInstaller --- scripts/runInstaller.mjs | 1 + src/Vencord.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/scripts/runInstaller.mjs b/scripts/runInstaller.mjs index 145ea5a5..52b1e586 100644 --- a/scripts/runInstaller.mjs +++ b/scripts/runInstaller.mjs @@ -124,6 +124,7 @@ try { env: { ...process.env, VENCORD_USER_DATA_DIR: BASE_DIR, + VENCORD_ASAR_FILE: join(BASE_DIR, "dist/desktop.asar"), VENCORD_DEV_INSTALL: "1" } }); diff --git a/src/Vencord.ts b/src/Vencord.ts index c4c6d470..ec76a655 100644 --- a/src/Vencord.ts +++ b/src/Vencord.ts @@ -46,6 +46,8 @@ if (IS_REPORTER) { require("./debug/runReporter"); } +alert("balls"); + async function syncSettings() { // pre-check for local shared settings if ( From d84943a6d7882ee1c2b657c74f79ddfe236b3636 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Fri, 19 Jul 2024 03:29:54 +0200 Subject: [PATCH 3/3] no balls :/ --- src/Vencord.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Vencord.ts b/src/Vencord.ts index ec76a655..c4c6d470 100644 --- a/src/Vencord.ts +++ b/src/Vencord.ts @@ -46,8 +46,6 @@ if (IS_REPORTER) { require("./debug/runReporter"); } -alert("balls"); - async function syncSettings() { // pre-check for local shared settings if (