Skip to content

Commit 58dba73

Browse files
committed
new
0 parents  commit 58dba73

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1861
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

.github/workflows/build.yml

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: build miniclash
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
name:
7+
description: 'Manual Trigger'
8+
required: false
9+
default: 'Build'
10+
11+
env:
12+
TZ: Asia/Shanghai
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
# permissions:
21+
# contents: write
22+
23+
- name: Set variables
24+
env:
25+
DEBIAN_FRONTEND: noninteractive
26+
run: |
27+
sudo apt-get -y install jq
28+
echo "VERSION=$(curl -sL https://api.github.com/repos/Dreamacro/clash/releases/latest | jq -r ".tag_name")" >> $GITHUB_ENV
29+
30+
- name: Set up Go
31+
uses: actions/setup-go@v3
32+
with:
33+
go-version: 1.19
34+
35+
- name: Install dependencies
36+
run: go get -u
37+
38+
- name: Build
39+
run: |
40+
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w -H=windowsgui" -o MiniClash.exe
41+
42+
- name: Upload binaries to release
43+
uses: softprops/action-gh-release@v1
44+
#if: startsWith(github.ref, 'refs/tags/')
45+
with:
46+
body: update to ${{ env.VERSION }}
47+
files: MiniClash.exe
48+
name: ${{ env.VERSION }}
49+
tag_name: ${{ env.VERSION }}
50+
token: ${{ secrets.PRIVATE_TOKEN }}
51+
env:
52+
GITHUB_REPOSITORY: gfw-list/MiniClash
53+
54+
- name: Upload to webdav
55+
uses: bxb100/action-upload-webdav@v1
56+
with:
57+
webdav_address: ${{secrets.address}}
58+
webdav_username: ${{secrets.username}}
59+
webdav_password: ${{secrets.password}}
60+
webdav_upload_path: "/Windows"
61+
files: "MiniClash.exe"
62+
63+
- name: Clean up
64+
uses: igorjs/gh-actions-clean-workflow@v3
65+
with:
66+
token: ${{ secrets.PRIVATE_TOKEN }}
67+
owner: ${{ github.repository_owner }}
68+
repo: ${{ github.event.repository.name }}
69+
days_old: 3

LICENSE

+674
Large diffs are not rendered by default.

README.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<h1 align="center">
2+
<img src="https://github.com/Dreamacro/clash/raw/master/docs/logo.png" alt="Clash" width="200">
3+
<br>Clash<br>
4+
</h1>
5+
6+
<h4 align="center">A rule-based tunnel in Go.</h4>
7+
8+
9+
<h1 align="center">
10+
<img src="https://github.com/gfw-list/TrayedClash/blob/main/screenshot.png" alt="Clash" width="400">
11+
</h1>
12+
13+
14+
15+
16+
17+
Note: 99.99% from https://github.com/imgk/TrayedClash

clash.ico

24.9 KB
Binary file not shown.

go.mod

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
module github.com/gfw-list/TrayedClash
2+
3+
go 1.19
4+
5+
require (
6+
github.com/Dreamacro/clash v1.11.12
7+
github.com/atotto/clipboard v0.1.4
8+
github.com/getlantern/systray v1.2.1
9+
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
10+
golang.org/x/sys v0.2.0
11+
)
12+
13+
require (
14+
github.com/ajg/form v1.5.1 // indirect
15+
github.com/fatih/color v1.10.0 // indirect
16+
github.com/getlantern/context v0.0.0-20220418194847-3d5e7a086201 // indirect
17+
github.com/getlantern/errors v1.0.3 // indirect
18+
github.com/getlantern/golog v0.0.0-20221014032422-49749a7176cf // indirect
19+
github.com/getlantern/hex v0.0.0-20220104173244-ad7e4b9194dc // indirect
20+
github.com/getlantern/hidden v0.0.0-20220104173330-f221c5a24770 // indirect
21+
github.com/getlantern/ops v0.0.0-20220713155959-1315d978fff7 // indirect
22+
github.com/go-chi/chi/v5 v5.0.7 // indirect
23+
github.com/go-chi/cors v1.2.1 // indirect
24+
github.com/go-chi/render v1.0.2 // indirect
25+
github.com/go-logr/logr v1.2.3 // indirect
26+
github.com/go-logr/stdr v1.2.2 // indirect
27+
github.com/go-stack/stack v1.8.1 // indirect
28+
github.com/goccy/go-yaml v1.9.6 // indirect
29+
github.com/gofrs/uuid v4.3.1+incompatible // indirect
30+
github.com/google/go-cmp v0.5.9 // indirect
31+
github.com/gorilla/websocket v1.5.0 // indirect
32+
github.com/insomniacslk/dhcp v0.0.0-20221001123530-5308ebe5334c // indirect
33+
github.com/josharian/native v1.0.0 // indirect
34+
github.com/mattn/go-colorable v0.1.8 // indirect
35+
github.com/mattn/go-isatty v0.0.12 // indirect
36+
github.com/mdlayher/netlink v1.7.0 // indirect
37+
github.com/mdlayher/socket v0.4.0 // indirect
38+
github.com/miekg/dns v1.1.50 // indirect
39+
github.com/oschwald/geoip2-golang v1.8.0 // indirect
40+
github.com/oschwald/maxminddb-golang v1.10.0 // indirect
41+
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c // indirect
42+
github.com/sirupsen/logrus v1.9.0 // indirect
43+
github.com/u-root/uio v0.0.0-20220204230159-dac05f7d2cb4 // indirect
44+
go.etcd.io/bbolt v1.3.6 // indirect
45+
go.opentelemetry.io/otel v1.11.1 // indirect
46+
go.opentelemetry.io/otel/trace v1.11.1 // indirect
47+
go.uber.org/atomic v1.10.0 // indirect
48+
go.uber.org/multierr v1.8.0 // indirect
49+
go.uber.org/zap v1.23.0 // indirect
50+
golang.org/x/crypto v0.3.0 // indirect
51+
golang.org/x/mod v0.7.0 // indirect
52+
golang.org/x/net v0.2.0 // indirect
53+
golang.org/x/sync v0.1.0 // indirect
54+
golang.org/x/text v0.4.0 // indirect
55+
golang.org/x/tools v0.3.0 // indirect
56+
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
57+
gopkg.in/yaml.v3 v3.0.1 // indirect
58+
)

0 commit comments

Comments
 (0)