vesktop: 1.6.1 -> 1.6.3 (#474029)

This commit is contained in:
Sefa Eyeoglu
2026-01-01 16:47:56 +00:00
committed by GitHub
2 changed files with 4 additions and 26 deletions

View File

@@ -1,19 +0,0 @@
diff --git a/src/main/settings.ts b/src/main/settings.ts
index 6fad97f..dfc64e3 100644
--- a/src/main/settings.ts
+++ b/src/main/settings.ts
@@ -26,8 +26,12 @@ function loadSettings<T extends object = any>(file: string, name: string) {
const store = new SettingsStore(settings);
store.addGlobalChangeListener(o => {
- mkdirSync(dirname(file), { recursive: true });
- writeFileSync(file, JSON.stringify(o, null, 4));
+ try {
+ mkdirSync(dirname(file), { recursive: true });
+ writeFileSync(file, JSON.stringify(o, null, 4));
+ } catch (e) {
+ console.error("Nix: Failed to write settings.", e);
+ }
});
return store;

View File

@@ -26,13 +26,13 @@
}:
stdenv.mkDerivation (finalAttrs: {
pname = "vesktop";
version = "1.6.1";
version = "1.6.3";
src = fetchFromGitHub {
owner = "Vencord";
repo = "Vesktop";
rev = "v${finalAttrs.version}";
hash = "sha256-ZFAsyH+5duKerZissOR/lESLetqqEMLk86msLlQO1xU=";
hash = "sha256-Ceo66G9Dhz6cL4PlXXrM0Es9QrqFCvlaHgvP/c1aJfQ=";
};
pnpmDeps = fetchPnpmDeps {
@@ -44,7 +44,7 @@ stdenv.mkDerivation (finalAttrs: {
;
pnpm = pnpm_10;
fetcherVersion = 2;
hash = "sha256-7fYD4lTSLCMOa+CqGlL45Mjw6qMfIJddPcRF5/dGGrk=";
hash = "sha256-H5O08/2cWNj1KfYV1be+uYobDYGEdEfO0nlazbtiqvc=";
};
nativeBuildInputs = [
@@ -72,10 +72,7 @@ stdenv.mkDerivation (finalAttrs: {
(lib.getLib stdenv.cc.cc)
];
patches = [
./fix_read_only_settings.patch
]
++ lib.optional withSystemVencord (
patches = lib.optional withSystemVencord (
replaceVars ./use_system_vencord.patch {
inherit vencord;
}