mcy_new #1

Merged
wangyang merged 179 commits from mcy_new into master 2025-08-28 10:10:45 +08:00
1 changed files with 7 additions and 4 deletions
Showing only changes of commit b1c95c0cbd - Show all commits

View File

@ -1,3 +1,4 @@
import 'dart:io';
import 'package:auto_updater/auto_updater.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
@ -29,10 +30,12 @@ void main() async {
WidgetsFlutterBinding.ensureInitialized();
// Windows
String feedURL = '${RequestConfig.imgUrl}infra-app/job/3/appcast.xml';
await autoUpdater.setFeedURL(feedURL);
await autoUpdater.checkForUpdates();
await autoUpdater.setScheduledCheckInterval(3600);
if(Platform.isWindows){
String feedURL = '${RequestConfig.imgUrl}infra-app/job/3/appcast.xml';
await autoUpdater.setFeedURL(feedURL);
await autoUpdater.checkForUpdates();
await autoUpdater.setScheduledCheckInterval(3600);
}
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
statusBarColor: Colors.transparent, //