Unverified Commit d1ce55a9 authored by Sefa Eyeoglu's avatar Sefa Eyeoglu Committed by GitHub
Browse files

vesktop: 1.6.0 -> 1.6.1; fix use_system_vencord.patch (#457209)

parents 92a6403f fcc20fbb
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -24,13 +24,13 @@
}:
stdenv.mkDerivation (finalAttrs: {
  pname = "vesktop";
  version = "1.6.0";
  version = "1.6.1";

  src = fetchFromGitHub {
    owner = "Vencord";
    repo = "Vesktop";
    rev = "v${finalAttrs.version}";
    hash = "sha256-kzJsSjaTH6HtBfhEtX4NLJS96zgYr0/Us6H0tDJvb9A=";
    hash = "sha256-ZFAsyH+5duKerZissOR/lESLetqqEMLk86msLlQO1xU=";
  };

  pnpmDeps = pnpm_10.fetchDeps {
@@ -41,7 +41,7 @@ stdenv.mkDerivation (finalAttrs: {
      patches
      ;
    fetcherVersion = 2;
    hash = "sha256-Vn+Imarp1OTPfe/PoMgFHU5eWnye5Oa+qoGZaTxOUmU=";
    hash = "sha256-7fYD4lTSLCMOa+CqGlL45Mjw6qMfIJddPcRF5/dGGrk=";
  };

  nativeBuildInputs = [
+9 −12
Original line number Diff line number Diff line
diff --git a/src/main/constants.ts b/src/main/constants.ts
index 40d91a5..7b46bbf 100644
--- a/src/main/constants.ts
+++ b/src/main/constants.ts
@@ -49,7 +49,7 @@ export const VENCORD_THEMES_DIR = join(DATA_DIR, "themes");
 // as otherwise "DATA_DIR" (which is used by ./settings) will be uninitialised
 export const VENCORD_FILES_DIR =
     (require("./settings") as typeof import("./settings")).State.store.vencordDir ||
-    join(SESSION_DATA_DIR, "vencordFiles");
+    "@vencord@";
 
 export const USER_AGENT = `Vesktop/${app.getVersion()} (https://github.com/Vencord/Vesktop)`;
diff --git a/src/main/vencordFilesDir.ts b/src/main/vencordFilesDir.ts
index 8ef9ab8..ac376e0 100644
--- a/src/main/vencordFilesDir.ts
+++ b/src/main/vencordFilesDir.ts
@@ -10,4 +10,4 @@ import { SESSION_DATA_DIR } from "./constants";
 import { State } from "./settings";
 
 // this is in a separate file to avoid circular dependencies
-export const VENCORD_FILES_DIR = State.store.vencordDir || join(SESSION_DATA_DIR, "vencordFiles");
+export const VENCORD_FILES_DIR = State.store.vencordDir || "@vencord@";