Clash Pro for Flutter
开发
# https://mobx.netlify.app/getting-started
# generates *.g.dart
flutter pub run build_runner build --delete-conflicting-outputs
# or
flutter pub run build_runner watch --delete-conflicting-outputs
flutter run -d windows
macOS 构建
dart pub global activate flutter_distributor
npm install -g appdmg
flutter_distributor package --platform=macos --targets=dmg
Windows 构建
dart pub global activate flutter_distributor
# need install Inno https://jrsoftware.org/isdl.php#stable
flutter_distributor package --platform windows --targets exe,zip
问题记录
隐藏 cmd 窗口
https://github.com/flutter/flutter/issues/47891
https://github.com/flutter/flutter/issues/47891
https://github.com/dart-lang/sdk/issues/39945
bitsdojo_window 修复 macOS 运行错误
https://github.com/bitsdojo/bitsdojo_window/issues/119
bitsdojo_window 示例
https://github.com/bitsdojo/bitsdojo_window/tree/master/bitsdojo_window/example
Windows 关闭窗口时不退出进程
https://github.com/antler119/system_tray/issues/7
macOS 关闭窗口时不退出进程
https://github.com/antler119/system_tray/issues/10
单实例应用 (Win)
https://github.com/biyidev/biyi/commit/66ad34c21c221460c0bd7c47a743259f5e15a38d
编辑 Windows 版本
https://github.com/flutter/flutter/issues/73652
待办事项
-
macOS 关闭窗口时隐藏 Dock
-
Hot restart 时重启 clash
https://github.com/flutter/flutter/issues/10437 -
macOS 调试模式下多次调用 Shell 会卡死
https://github.com/flutter/flutter/issues/95805 -
TUN 模式
其他 Clash GUI
ClashX (macOS)
https://github.com/yichengchen/clashX
ClashX Pro (macOS)
https://install.appcenter.ms/users/clashx/apps/clashx-pro/distribution_groups/public
Clash Pro (Win & macOS)
https://github.com/Fndroid/clash_for_windows_pkg/
subconverter
https://github.com/tindy2013/subconverter
subconverter Web GUI
https://github.com/CareyWang/sub-web/
Clash Pro VMess 最新参数支持
https://github.com/tindy2013/subconverter/issues/442