ente-auth: disable updates
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user