Giter Site home page Giter Site logo

jay-vim-lv / clash-for-flutter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mapleafgo/clash-for-flutter

0.0 0.0 0.0 60.69 MB

Clash的桌面客户端,支持 windows、linux、macos

License: MIT License

Ruby 0.45% C++ 8.25% C 0.48% Objective-C 0.01% Kotlin 2.10% Dart 81.12% Swift 1.09% CMake 6.51%

clash-for-flutter's Introduction

Clash for Flutter

这是一个 Clash 的多平台客户端,支持 windows、linux、macos、android、ios

使用说明

界面

主页

代理页

代理页

连接页

订阅页

设置页

开发、打包说明

  • 基础环境

    Flutter v3.16+

    对目标平台时,需要参照 Flutter 官方文档进行对应平台的环境搭建。如 Android 开发时,需要 Android-SDK

    Linux环境下 system_tray 需要 libayatana-appindicator3-dev or libappindicator3-dev

  • 下载内核

    https://github.com/mapleafgo/cff-core/releases/latest 下载对应平台需要的内核, 然后将解压出来的内核文件移动到对应的路径,各平台路径如下:

    # windows
    windows/core/libclash.dll
    # linux
    linux/core/libclash.so
    # android
    android/app/libs/libclash.aar
    # macos
    macos/Frameworks/libclash.dylib
    # ios
    ios/Frameworks/libclash.xcframework

    注意:解压出来的文件,仅保留所需的后缀名文件即可,且将其改名为路径的文件名

    内核是在 Clash v1.18.0 (非premium) 的基础上进行二次开发的,仅加入了 tun 模式(参照 Meta 进行)

  • 编译项目

    # 1. 获取项目依赖
    $ flutter pub get
    # 2. 生成 .g.dart 文件
    $ dart run build_runner build --delete-conflicting-outputs
    
    # 3. 运行项目 (linux)
    $ flutter run -d linux
    # 3. 运行项目 (windows)
    $ flutter run -d windows
    # 3. 运行项目 (android)
    $ flutter run -d android
    # 3. 运行项目 (macos)
    $ flutter run -d macos
  • 打包项目

    该项目用 flutter_distributor 打包,打包步骤看 flutter_distributor 的官方文档吧

主要技术

写在后面

自 1.0.0 版本开始,本软件全面从之前的 Go-Flutter 迁移到了官方 Flutter 版本。迁移中部分参考了 Fclash 非常感谢!

clash-for-flutter's People

Contributors

mapleafgo avatar gentlemadao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.