equibop: remove broken withSystemEquicord argument

This commit is contained in:
Gutyina Gergő
2025-08-24 09:43:13 +02:00
parent 96c91f1f26
commit e4e6cc242d
2 changed files with 1 additions and 26 deletions
+1 -9
View File
@@ -17,9 +17,6 @@
nix-update-script,
withTTS ? true,
withMiddleClickScroll ? false,
# Enables the use of Equicord from nixpkgs instead of
# letting Equibop manage it's own version
withSystemEquicord ? false,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "equibop";
@@ -65,12 +62,7 @@ stdenv.mkDerivation (finalAttrs: {
patches = [
./disable_update_checking.patch
]
++ lib.optional withSystemEquicord (
replaceVars ./use_system_equicord.patch {
inherit equicord;
}
);
];
env = {
ELECTRON_SKIP_BINARY_DOWNLOAD = 1;
@@ -1,17 +0,0 @@
diff --git i/src/main/constants.ts w/src/main/constants.ts
index afb171f..c6a014e 100644
--- i/src/main/constants.ts
+++ w/src/main/constants.ts
@@ -30,10 +30,7 @@ export const VENCORD_THEMES_DIR = join(DATA_DIR, "themes");
// needs to be inline require because of circular dependency
// as otherwise "DATA_DIR" (which is used by ./settings) will be uninitialised
-export const VENCORD_DIR = (() => {
- const { State } = require("./settings") as typeof import("./settings");
- return State.store.equicordDir ? join(State.store.equicordDir, "equibop") : join(SESSION_DATA_DIR, "equicord.asar");
-})();
+export const VENCORD_DIR = "@equicord@";
export const USER_AGENT = `Equibop/${app.getVersion()} (https://github.com/Equicord/Equibop)`;