From 09098c6d07602d0d6d57312a172f13bb34713863 Mon Sep 17 00:00:00 2001 From: Prateek Sunal Date: Sun, 10 Mar 2024 00:07:04 +0530 Subject: [PATCH] fix: update service logic --- auth/lib/services/update_service.dart | 4 +++- auth/windows/runner/Runner.rc | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/auth/lib/services/update_service.dart b/auth/lib/services/update_service.dart index 6e1c12bea..23ed22ec8 100644 --- a/auth/lib/services/update_service.dart +++ b/auth/lib/services/update_service.dart @@ -3,6 +3,7 @@ import 'dart:io'; import 'package:ente_auth/core/constants.dart'; import 'package:ente_auth/core/network.dart'; import 'package:ente_auth/services/notification_service.dart'; +import 'package:ente_auth/utils/platform_util.dart'; import 'package:logging/logging.dart'; import 'package:package_info_plus/package_info_plus.dart'; import 'package:shared_preferences/shared_preferences.dart'; @@ -127,7 +128,8 @@ class UpdateService { bool isIndependent() { return flavor == "independent" || - _packageInfo.packageName.endsWith("independent"); + _packageInfo.packageName.endsWith("independent") || + PlatformUtil.isDesktop(); } } diff --git a/auth/windows/runner/Runner.rc b/auth/windows/runner/Runner.rc index 8b36e6b4e..da5407522 100644 --- a/auth/windows/runner/Runner.rc +++ b/auth/windows/runner/Runner.rc @@ -63,13 +63,13 @@ IDI_APP_ICON ICON "resources\\app_icon.ico" #if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD) #define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD #else -#define VERSION_AS_NUMBER 1,0,0,0 +#define VERSION_AS_NUMBER 2,0,34,234 #endif #if defined(FLUTTER_VERSION) #define VERSION_AS_STRING FLUTTER_VERSION #else -#define VERSION_AS_STRING "2.0.31" +#define VERSION_AS_STRING "2.0.34+234" #endif VS_VERSION_INFO VERSIONINFO