GithubHelp home page GithubHelp logo

learncodeg / 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 39.69 MB

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

License: MIT License

C++ 8.67% C 0.50% Objective-C 0.01% Go 0.64% Kotlin 0.05% Dart 82.33% Swift 1.04% CMake 6.76%

clash-for-flutter's Introduction

Clash For Flutter

这是一个 Clash 的桌面客户端,支持 windows、linux、macos。

使用说明

界面

主页

代理页

订阅页

设置页

开发、打包说明

  • 基础环境

    GCCGo v1.20+Flutter v3.10+

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

  • 编译项目

    # 1. 获取项目依赖
    $ flutter pub get
    # 2. 生成 .g.dart 文件
    $ dart run build_runner build --delete-conflicting-outputs
    
    # 3. 编译 Clash 内核
    $ cd core
    # windows
    $ go build -ldflags="-w -s" -buildmode=c-shared -o ./dist/libclash.dll
    # Linux
    $ go build -ldflags="-w -s" -buildmode=c-shared -o ./dist/libclash.so
    # macos
    $ go build -ldflags="-w -s" -buildmode=c-shared -o ./dist/libclash.dylib
    
    # 回到项目根目录
    $ cd ../
    # macos 系统需要移动下编译的内核路径
    $ cp -f ./core/dist/libclash.dylib ./macos/Frameworks/libclash.dylib
    
    # 4. 运行项目 (linux)
    $ flutter run -d linux
    # 4. 运行项目 (windows)
    $ flutter run -d windows
    # 4. 运行项目 (macos)
    $ flutter run -d macos
  • 打包项目

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

主要技术

写在后面

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

clash-for-flutter's People

Contributors

gentlemadao avatar mapleafgo 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.