From 6afcee95735c77f3fe99e4c013abfbc5c859aa8e Mon Sep 17 00:00:00 2001 From: Niklas Korz Date: Tue, 10 Dec 2024 21:15:36 +0100 Subject: [PATCH] ente-auth: disable updates --- .../en/ente-auth/0001-disable-updates.patch | 15 +++++++++++++++ pkgs/by-name/en/ente-auth/package.nix | 5 +++++ 2 files changed, 20 insertions(+) create mode 100644 pkgs/by-name/en/ente-auth/0001-disable-updates.patch diff --git a/pkgs/by-name/en/ente-auth/0001-disable-updates.patch b/pkgs/by-name/en/ente-auth/0001-disable-updates.patch new file mode 100644 index 000000000000..512106f8d853 --- /dev/null +++ b/pkgs/by-name/en/ente-auth/0001-disable-updates.patch @@ -0,0 +1,15 @@ +diff --git a/auth/lib/services/update_service.dart b/auth/lib/services/update_service.dart +index 716d553f1b..3946d87a7d 100644 +--- a/lib/services/update_service.dart ++++ b/lib/services/update_service.dart +@@ -134,9 +134,7 @@ class UpdateService { + } + + bool isIndependent() { +- return flavor == "independent" || +- _packageInfo.packageName.endsWith("independent") || +- PlatformUtil.isDesktop(); ++ return false; + } + } + \ No newline at end of file diff --git a/pkgs/by-name/en/ente-auth/package.nix b/pkgs/by-name/en/ente-auth/package.nix index 05ff15e07291..c3265538a209 100644 --- a/pkgs/by-name/en/ente-auth/package.nix +++ b/pkgs/by-name/en/ente-auth/package.nix @@ -31,6 +31,11 @@ flutter324.buildFlutterApplication rec { pubspecLock = lib.importJSON ./pubspec.lock.json; + patches = [ + # Disable update notifications and auto-update functionality + ./0001-disable-updates.patch + ]; + postPatch = '' rmdir assets/simple-icons ln -s ${simple-icons} assets/simple-icons