Fix windows service verify issues
This commit is contained in:
@@ -29,8 +29,6 @@ Future<void> main() async {
|
||||
await globalState.initApp(version);
|
||||
await android?.init();
|
||||
await window?.init(version);
|
||||
globalState.isPre = const String.fromEnvironment("APP_ENV") != 'stable';
|
||||
globalState.coreSHA256 = const String.fromEnvironment("CORE_SHA256");
|
||||
HttpOverrides.global = FlClashHttpOverrides();
|
||||
runApp(ProviderScope(
|
||||
child: const Application(),
|
||||
|
||||
@@ -52,6 +52,8 @@ class GlobalState {
|
||||
}
|
||||
|
||||
initApp(int version) async {
|
||||
coreSHA256 = const String.fromEnvironment("CORE_SHA256");
|
||||
isPre = const String.fromEnvironment("APP_ENV") != 'stable';
|
||||
appState = AppState(
|
||||
version: version,
|
||||
viewSize: Size.zero,
|
||||
|
||||
Reference in New Issue
Block a user