fix: update service logic
This commit is contained in:
parent
d33bc6956c
commit
09098c6d07
2 changed files with 5 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue