From ea1ba0c8836bfad7c84cca34a54136a5dd3c522e Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 25 Jul 2024 11:19:06 -0400 Subject: [PATCH] Fix Package.json find for equibop and vesktop --- src/main/patcher.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/patcher.ts b/src/main/patcher.ts index aa346c5c..e585d622 100644 --- a/src/main/patcher.ts +++ b/src/main/patcher.ts @@ -41,6 +41,7 @@ const asarPath = join(dirname(injectorPath), "..", "_app.asar"); const discordPkg = require(join(asarPath, "package.json")); require.main!.filename = join(asarPath, discordPkg.main); +if (IS_VESKTOP || IS_EQUIBOP) require.main!.filename = join(dirname(injectorPath), "..", "..", "package.json"); // @ts-ignore Untyped method? Dies from cringe app.setAppPath(asarPath);