Building from source
Building from source needs Flutter, Go and Rust toolchains with per-platform dependencies. The commands for each step and the errors people hit.
The interface is Flutter, the core is Go (mihomo), and some capabilities come from Rust libraries. All three compile in one build; missing any of them breaks it.
Prepare the toolchains
| Dependency | Version | Notes |
|---|---|---|
| Flutter | 3.50 (releases use 3.50.1) | UI and packaging entry point |
| Go | 1.27 | Compiles the mihomo core |
| Rust | Latest stable | Installed via rustup |
Clone and build
git clone --recursive https://github.com/concord-net/FlClash.git cd FlClash flutter pub get dart run tool/package.dart android # 或 windows / macos / linux
Output lands in dist/. Android builds on any host, but the others need their own system: macOS requires Xcode, Windows requires MinGW-w64 and Inno Setup 6, and Linux needs the build packages from Debian/Ubuntu.
Building a subset
dart run tool/package.dart android --arch arm64 # 只出一个 ABI dart run tool/package.dart --targets deb,rpm # 只出指定格式 dart run tool/package.dart --dry-run # 先看会写哪些文件
It lists every path it would produce without compiling. Run it first on a new machine — missing dependencies surface immediately.
License and attribution
FlClash is released under GPL-3.0. If you distribute a modified build, it must also be GPL-3.0 with the original attribution and license notice preserved.
FlClash is only a client and ships without nodes. With a plan: pay, copy the link, paste it in — three minutes to online.
Attach logs and system info when you open a GitHub issue — far more likely to get reproduced than a chat message.