Merge pull request #281997 from pluiedev/fix/vesktop_disable_update_checking
vesktop: add disable update checking patch
This commit is contained in:
commit
9fe5cee747
2 changed files with 13 additions and 0 deletions
12
pkgs/by-name/ve/vesktop/disable_update_checking.patch
Normal file
12
pkgs/by-name/ve/vesktop/disable_update_checking.patch
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
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 {
|
|
@ -87,6 +87,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
(substituteAll { inherit vencord; src = ./use_system_vencord.patch; })
|
(substituteAll { inherit vencord; src = ./use_system_vencord.patch; })
|
||||||
|
./disable_update_checking.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
ELECTRON_SKIP_BINARY_DOWNLOAD = 1;
|
ELECTRON_SKIP_BINARY_DOWNLOAD = 1;
|
||||||
|
|
Loading…
Reference in a new issue