fix:热更新对比补充

This commit is contained in:
jingyun committed 2026-09-07 09:42:47 +08:00
1 parent b503cb7e6e
commit 2a88320228
2 files changed
+36 -6

No files matched your search

+4 -2
View File
@@ -1,3 +1,4 @@
import 'dart:async';
import 'dart:io' show Platform;
import 'package:flutter/foundation.dart' show kIsWeb;
@@ -29,8 +30,9 @@ Future<Widget> bootstrap() async {
}
}
if (!kIsWeb) {
await ShorebirdService.instance.initCurrentPatch();
ShorebirdService.instance.checkForUpdateInBackground();
// Shorebird's native updater performs the automatic launch-time update.
// Reading the running patch is diagnostic state and must not delay startup.
unawaited(ShorebirdService.instance.initCurrentPatch());
}
return const JinzhiApp();
}