From cfc1afb710cf6fe62fb286e83dbb061ea36dc346 Mon Sep 17 00:00:00 2001 From: wweir Date: Mon, 9 Aug 2021 07:28:16 +0800 Subject: [PATCH] change architecture diagram --- .github/workflows/release.yml | 49 ++++++++---------- sower.drawio.svg | 96 ++++++++++++++++++----------------- 2 files changed, 72 insertions(+), 73 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6fe13b2..9917606 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,45 +9,40 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/setup-go@v2 + with: + go-version: ^1.16.7 - uses: actions/checkout@v2 - name: build matrix run: | - cp conf/sower.toml sower.toml - - GOOS=linux GOARCH=amd64 make build + make build GO='GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go' tar czvf sower-linux-amd64.tar.gz sower sowerd - GOOS=linux GOARCH=386 make build - tar czvf sower-linux-386.tar.gz sower sowerd - GOOS=linux GOARCH=arm make build + rm -f sower sowerd + make build GO='GOOS=linux GOARCH=arm CGO_ENABLED=0 go' tar czvf sower-linux-arm.tar.gz sower sowerd - GOOS=linux GOARCH=arm64 make build + rm -f sower sowerd + make build GO='GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go' tar czvf sower-linux-arm64.tar.gz sower sowerd - GOOS=linux GOARCH=mips make build + rm -f sower sowerd + make build GO='GOOS=linux GOARCH=mips CGO_ENABLED=0 go' tar czvf sower-linux-mips.tar.gz sower sowerd - GOOS=linux GOARCH=mipsle make build + rm -f sower sowerd + make build GO='GOOS=linux GOARCH=mipsle CGO_ENABLED=0 go' tar czvf sower-linux-mipsle.tar.gz sower sowerd + rm -f sower sowerd - GOOS=darwin GOARCH=amd64 make build + make build GO='GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go' tar czvf sower-darwin-amd64.tar.gz sower sowerd + rm -f sower sowerd + make build GO='GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go' + tar czvf sower-darwin-arm64.tar.gz sower sowerd + rm -f sower sowerd - GOOS=windows GOARCH=amd64 make build + make build GO='GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go' tar czvf sower-windows-amd64.tar.gz sower sowerd - GOOS=windows GOARCH=386 make build - tar czvf sower-windows-386.tar.gz sower sowerd + rm -f sower sowerd - - name: Release - uses: softprops/action-gh-release@master + - uses: ncipollo/release-action@v1 with: - files: | - sower-linux-amd64.tar.gz - sower-linux-386.tar.gz - sower-linux-arm.tar.gz - sower-linux-arm64.tar.gz - sower-linux-mips.tar.gz - sower-linux-mipsle.tar.gz - sower-darwin-amd64.tar.gz - sower-windows-amd64.tar.gz - sower-windows-386.tar.gz - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + artifacts: "*.tar.gz" + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/sower.drawio.svg b/sower.drawio.svg index 7fe933d..c3743a0 100644 --- a/sower.drawio.svg +++ b/sower.drawio.svg @@ -1,12 +1,13 @@ - + - - + + + -
+
HTTPS @@ -14,17 +15,17 @@
- + HTTPS - - + + -
+
socks5 upstream @@ -32,17 +33,17 @@
- + socks5 upstream - - + + -
+
direct visit @@ -50,37 +51,40 @@
- + direct visit - + -
+
sower +
+
+ rules and detect based router
- - sower + + sower... - - - - - + + + + + -
+
sowerd @@ -88,17 +92,17 @@
- + sowerd - - + + -
+
socks5 intelligent proxy @@ -106,17 +110,17 @@
- + socks5 intelligent proxy - - + + -
+
Browser  Users @@ -124,17 +128,17 @@
- + Brows... - - + + -
+
DNS route the net flow @@ -142,17 +146,17 @@
- + DNS route the net flow - - + + -
+
Other Users @@ -160,16 +164,16 @@
- + Other... - + -
+
fake site @@ -177,16 +181,16 @@
- + fake site - + -
+
target site @@ -194,7 +198,7 @@
- + target site