Unverified Commit e8b7dc9c authored by Leah Amelia Chen's avatar Leah Amelia Chen
Browse files

vesktop: add disable update checking patch

As discussed in [NixOS/nixpkgs#281669](https://github.com/NixOS/nixpkgs/pull/281669#issuecomment-1899451746), it might be more beneficial to disable the update checker
and prevent the users from being annoyed to update to a version that's
not yet built in Nixpkgs.

A builtin option for disabling the update checker does exist, however
it's buried very deeply within Vesktop settings and normal users may not
ever be aware of its existence — better to do it in Nixpkgs itself
parent b956688f
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
diff --git a/src/updater/main.ts b/src/updater/main.ts
index 059afb9..274802e 100644
--- a/src/updater/main.ts
+++ b/src/updater/main.ts
@@ -77,6 +77,7 @@ function isOutdated(oldVersion: string, newVersion: string) {
 }
 
 export async function checkUpdates() {
+    return;
     if (Settings.store.checkUpdates === false) return;
 
     try {
+1 −0
Original line number Diff line number Diff line
@@ -87,6 +87,7 @@ stdenv.mkDerivation (finalAttrs: {

  patches = [
    (substituteAll { inherit vencord; src = ./use_system_vencord.patch; })
    ./disable_update_checking.patch
  ];

  ELECTRON_SKIP_BINARY_DOWNLOAD = 1;