Skip to content

5ec1cff/FlClash

 
 

Repository files navigation

编译 apk

dart .\setup.dart android 

坑点

  1. 如果是本地构建,建议每次构建都重新 clone 一遍仓库,因为原项目的脚本实在太脏了。(例子:某次重构把 jniLibs 放到了 core 模块,但是此前在 app 模块,这样老的 app 模块和新的 core 模块都有 jniLibs ,AGP 在复制的时候直接选择了 app 模块的老旧 libclash.so ,导致产物出现问题)
  2. 如果要反复编译,最好把 setup.dart 里面的 getDistributor 的 clean distributor upgrade distributor 给注释了,纯浪费时间(实际上 go build 每次也都是重新跑的)
  3. 如果要用 Android Studio 打开 android 项目,最好把 project.layout.buildDirectory.value(newSubprojectBuildDir) 给注释掉,否则无法同步。
  4. --flutter-build-args=verbose,verbose, 最好移除,因为出错之后除了打印冗长无用的 gradle stacktrace 之外没有任何用。

FlClash

DownloadsLast VersionLicense

Channel

A multi-platform proxy client based on ClashMeta, simple and easy to use, open-source and ad-free.

on Desktop:

desktop

on Mobile:

mobile

Features

✈️ Multi-platform: Android, Windows, macOS and Linux

💻 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

Use

Linux

⚠️ Make sure to install the following dependencies before using them

 sudo apt-get install libayatana-appindicator3-dev sudo apt-get install libkeybinder-3.0-dev

Android

Support the following actions

 com.follow.clash.action.START com.follow.clash.action.STOP com.follow.clash.action.TOGGLE

Download

Get it on F-Droid Get it on GitHub

Build

  1. Update submodules

    git submodule update --init --recursive
  2. Install Flutter and Golang environment

  3. Build Application

    • android

      1. Install Android SDK , Android NDK

      2. Set ANDROID_NDK environment variables

      3. Run Build script

        dart .\setup.dart android
    • windows

      1. You need a windows client

      2. Install GccInno Setup

      3. Run build script

        dart .\setup.dart windows --arch <arm64 | amd64>
    • linux

      1. You need a linux client

      2. Run build script

        dart .\setup.dart linux --arch <arm64 | amd64>
    • macOS

      1. You need a macOS client

      2. Run build script

        dart .\setup.dart macos --arch <arm64 | amd64>

Star

The easiest way to support developers is to click on the star (⭐) at the top of the page.

start

About

A multi-platform proxy client based on ClashMeta,simple and easy to use, open-source and ad-free.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Dart 82.8%
  • Kotlin 6.4%
  • C++ 3.3%
  • Go 2.6%
  • CMake 1.9%
  • Inno Setup 1.6%
  • Other 1.4%