Merge pull request #281997 from pluiedev/fix/vesktop_disable_update_checking

vesktop: add disable update checking patch
This commit is contained in:
h7x4 2024-01-20 19:02:46 +01:00 committed by GitHub
commit 9fe5cee747
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View 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 {

View file

@ -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;