chandelures / openwrt-clash

Clash package for Openwrt
48 stars 10 forks source link

Clash
Openwrt Clash

build

Description

This repository is the clash package based on Dreamacro/clash for Openwrt.

LuCI support is on the https://github.com/chandelures/luci-app-simple-clash.

Features

Installation

Manual Install

  1. Update list of available packages
$ opkg update
  1. Choose correct .ipk based on the architecture of router from release page, and use Opkg package manager to install.
$ opkg install clash_*.ipk

Build From Source

  1. First, You should download the Openwrt Source Code or SDK as the basic enviroment to build the package.
$ git clone https://github.com/openwrt/openwrt

$ cd openwrt

or download Openwrt SDK from https://downloads.openwrt.org/

$ tar -Jxvf openwrt-sdk_*.tar.xz

$ cd openwrt-sdk_*
  1. Prepare build environment
$ ./scripts/feeds update -a

$ ./scripts/feeds install -a

$ git clone https://github.com/chandelures/openwrt-clash package/openwrt-clash
  1. Choose clash as a module or built-in module
$ make menuconfig

Network  --->
    <M> clash
        Clash Configuration  --->
            [*] Include Country.mmdb
    < > clash-dashboard
  1. Build packages
$ make package/openwrt-clash/{clean,compile} V=s