♻️ Better windows support

This commit is contained in:
2025-09-11 01:06:58 +08:00
parent 461ed1fcda
commit 1c058a4323
5 changed files with 5 additions and 4 deletions

View File

@@ -181,7 +181,7 @@ class IslandApp extends HookConsumerWidget {
}
useEffect(() {
if (!kIsWeb && Platform.isLinux) {
if (!kIsWeb && (Platform.isLinux || Platform.isWindows)) {
return null;
}

View File

@@ -12,7 +12,6 @@ import 'package:shelf_web_socket/shelf_web_socket.dart';
import 'package:web_socket_channel/web_socket_channel.dart';
import 'package:path/path.dart' as path;
import 'package:win32/win32.dart';
import 'package:win32/winsock2.dart' as winsock2;
import 'package:ffi/ffi.dart';
const String kRpcLogPrefix = 'arRPC.websocket';