dart .\setup.dart android 坑点
- 如果是本地构建,建议每次构建都重新 clone 一遍仓库,因为原项目的脚本实在太脏了。(例子:某次重构把 jniLibs 放到了 core 模块,但是此前在 app 模块,这样老的 app 模块和新的 core 模块都有 jniLibs ,AGP 在复制的时候直接选择了 app 模块的老旧 libclash.so ,导致产物出现问题)
- 如果要反复编译,最好把 setup.dart 里面的 getDistributor 的
clean distributorupgrade distributor给注释了,纯浪费时间(实际上 go build 每次也都是重新跑的) - 如果要用 Android Studio 打开 android 项目,最好把
project.layout.buildDirectory.value(newSubprojectBuildDir)给注释掉,否则无法同步。 --flutter-build-args=verbose,的verbose,最好移除,因为出错之后除了打印冗长无用的 gradle stacktrace 之外没有任何用。
A multi-platform proxy client based on ClashMeta, simple and easy to use, open-source and ad-free.
on Desktop:
on Mobile:
💻 Adaptive multiple screen sizes, Multiple color themes available
💡 Based on Material You Design, Surfboard-like UI
☁️ Supports data sync via WebDAV
✨ Support subscription link, Dark mode
sudo apt-get install libayatana-appindicator3-dev sudo apt-get install libkeybinder-3.0-devSupport the following actions
com.follow.clash.action.START com.follow.clash.action.STOP com.follow.clash.action.TOGGLE-
Update submodules
git submodule update --init --recursive
-
Install
FlutterandGolangenvironment -
Build Application
-
android
-
Install
Android SDK,Android NDK -
Set
ANDROID_NDKenvironment variables -
Run Build script
dart .\setup.dart android
-
-
windows
-
You need a windows client
-
Install
Gcc,Inno Setup -
Run build script
dart .\setup.dart windows --arch <arm64 | amd64>
-
-
linux
-
You need a linux client
-
Run build script
dart .\setup.dart linux --arch <arm64 | amd64>
-
-
macOS
-
You need a macOS client
-
Run build script
dart .\setup.dart macos --arch <arm64 | amd64>
-
-
The easiest way to support developers is to click on the star (⭐) at the top of the page.

