-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 58dba73
Showing
69 changed files
with
1,861 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: build miniclash | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
name: | ||
description: 'Manual Trigger' | ||
required: false | ||
default: 'Build' | ||
|
||
env: | ||
TZ: Asia/Shanghai | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
# permissions: | ||
# contents: write | ||
|
||
- name: Set variables | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
run: | | ||
sudo apt-get -y install jq | ||
echo "VERSION=$(curl -sL https://api.github.com/repos/Dreamacro/clash/releases/latest | jq -r ".tag_name")" >> $GITHUB_ENV | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19 | ||
|
||
- name: Install dependencies | ||
run: go get -u | ||
|
||
- name: Build | ||
run: | | ||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w -H=windowsgui" -o MiniClash.exe | ||
- name: Upload binaries to release | ||
uses: softprops/action-gh-release@v1 | ||
#if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
body: update to ${{ env.VERSION }} | ||
files: MiniClash.exe | ||
name: ${{ env.VERSION }} | ||
tag_name: ${{ env.VERSION }} | ||
token: ${{ secrets.PRIVATE_TOKEN }} | ||
env: | ||
GITHUB_REPOSITORY: gfw-list/MiniClash | ||
|
||
- name: Upload to webdav | ||
uses: bxb100/action-upload-webdav@v1 | ||
with: | ||
webdav_address: ${{secrets.address}} | ||
webdav_username: ${{secrets.username}} | ||
webdav_password: ${{secrets.password}} | ||
webdav_upload_path: "/Windows" | ||
files: "MiniClash.exe" | ||
|
||
- name: Clean up | ||
uses: igorjs/gh-actions-clean-workflow@v3 | ||
with: | ||
token: ${{ secrets.PRIVATE_TOKEN }} | ||
owner: ${{ github.repository_owner }} | ||
repo: ${{ github.event.repository.name }} | ||
days_old: 3 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<h1 align="center"> | ||
<img src="https://github.com/Dreamacro/clash/raw/master/docs/logo.png" alt="Clash" width="200"> | ||
<br>Clash<br> | ||
</h1> | ||
|
||
<h4 align="center">A rule-based tunnel in Go.</h4> | ||
|
||
|
||
<h1 align="center"> | ||
<img src="https://github.com/gfw-list/TrayedClash/blob/main/screenshot.png" alt="Clash" width="400"> | ||
</h1> | ||
|
||
|
||
|
||
|
||
|
||
Note: 99.99% from https://github.com/imgk/TrayedClash |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
module github.com/gfw-list/TrayedClash | ||
|
||
go 1.19 | ||
|
||
require ( | ||
github.com/Dreamacro/clash v1.11.12 | ||
github.com/atotto/clipboard v0.1.4 | ||
github.com/getlantern/systray v1.2.1 | ||
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 | ||
golang.org/x/sys v0.2.0 | ||
) | ||
|
||
require ( | ||
github.com/ajg/form v1.5.1 // indirect | ||
github.com/fatih/color v1.10.0 // indirect | ||
github.com/getlantern/context v0.0.0-20220418194847-3d5e7a086201 // indirect | ||
github.com/getlantern/errors v1.0.3 // indirect | ||
github.com/getlantern/golog v0.0.0-20221014032422-49749a7176cf // indirect | ||
github.com/getlantern/hex v0.0.0-20220104173244-ad7e4b9194dc // indirect | ||
github.com/getlantern/hidden v0.0.0-20220104173330-f221c5a24770 // indirect | ||
github.com/getlantern/ops v0.0.0-20220713155959-1315d978fff7 // indirect | ||
github.com/go-chi/chi/v5 v5.0.7 // indirect | ||
github.com/go-chi/cors v1.2.1 // indirect | ||
github.com/go-chi/render v1.0.2 // indirect | ||
github.com/go-logr/logr v1.2.3 // indirect | ||
github.com/go-logr/stdr v1.2.2 // indirect | ||
github.com/go-stack/stack v1.8.1 // indirect | ||
github.com/goccy/go-yaml v1.9.6 // indirect | ||
github.com/gofrs/uuid v4.3.1+incompatible // indirect | ||
github.com/google/go-cmp v0.5.9 // indirect | ||
github.com/gorilla/websocket v1.5.0 // indirect | ||
github.com/insomniacslk/dhcp v0.0.0-20221001123530-5308ebe5334c // indirect | ||
github.com/josharian/native v1.0.0 // indirect | ||
github.com/mattn/go-colorable v0.1.8 // indirect | ||
github.com/mattn/go-isatty v0.0.12 // indirect | ||
github.com/mdlayher/netlink v1.7.0 // indirect | ||
github.com/mdlayher/socket v0.4.0 // indirect | ||
github.com/miekg/dns v1.1.50 // indirect | ||
github.com/oschwald/geoip2-golang v1.8.0 // indirect | ||
github.com/oschwald/maxminddb-golang v1.10.0 // indirect | ||
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c // indirect | ||
github.com/sirupsen/logrus v1.9.0 // indirect | ||
github.com/u-root/uio v0.0.0-20220204230159-dac05f7d2cb4 // indirect | ||
go.etcd.io/bbolt v1.3.6 // indirect | ||
go.opentelemetry.io/otel v1.11.1 // indirect | ||
go.opentelemetry.io/otel/trace v1.11.1 // indirect | ||
go.uber.org/atomic v1.10.0 // indirect | ||
go.uber.org/multierr v1.8.0 // indirect | ||
go.uber.org/zap v1.23.0 // indirect | ||
golang.org/x/crypto v0.3.0 // indirect | ||
golang.org/x/mod v0.7.0 // indirect | ||
golang.org/x/net v0.2.0 // indirect | ||
golang.org/x/sync v0.1.0 // indirect | ||
golang.org/x/text v0.4.0 // indirect | ||
golang.org/x/tools v0.3.0 // indirect | ||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
Oops, something went wrong.