From bbf6967ee6b5349c64d35e21c1976c0903ee8fa2 Mon Sep 17 00:00:00 2001 From: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> Date: Wed, 19 Oct 2022 07:19:13 +0800 Subject: [PATCH 01/16] Update README.md Signed-off-by: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7d0bc2e7..7eaea71c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# sing-box +# sing-box 网络代理平台的“瑞士军刀” The universal proxy platform. @@ -23,4 +23,4 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . -``` \ No newline at end of file +``` From 34b85c5f84f4fc050dafd41b6522540e13d5834f Mon Sep 17 00:00:00 2001 From: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> Date: Wed, 19 Oct 2022 07:20:55 +0800 Subject: [PATCH 02/16] Update README.md Signed-off-by: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7eaea71c..63743af4 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # sing-box 网络代理平台的“瑞士军刀” -The universal proxy platform. +通用代理平台 The universal proxy platform. -## Documentation +## 文档 Documentation https://sing-box.sagernet.org From 243b79c3badaaa40b519f24e6fc9e7665bfb3123 Mon Sep 17 00:00:00 2001 From: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> Date: Wed, 19 Oct 2022 07:27:07 +0800 Subject: [PATCH 03/16] Update README.md Signed-off-by: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 63743af4..87ee06e7 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,11 @@ https://sing-box.sagernet.org +安卓端支持软件Matsuri +https://github.com/MatsuriDayo/Matsuri +安卓端插件地址 +https://github.com/SagerNet/SagerNet + ## License ``` From 4f936ad70caa10219e3c874a668e389352c0f7f0 Mon Sep 17 00:00:00 2001 From: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> Date: Wed, 19 Oct 2022 07:29:25 +0800 Subject: [PATCH 04/16] Update README.md Signed-off-by: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 87ee06e7..5454e401 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ https://sing-box.sagernet.org +## Matsuri (茉莉) for Android 安卓端支持软件Matsuri https://github.com/MatsuriDayo/Matsuri 安卓端插件地址 From f2249191ed46c1a0aac88115ba60e60f5f483bd4 Mon Sep 17 00:00:00 2001 From: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> Date: Wed, 19 Oct 2022 07:31:29 +0800 Subject: [PATCH 05/16] Update README.md Signed-off-by: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 5454e401..f71a8ad7 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,10 @@ https://github.com/MatsuriDayo/Matsuri 安卓端插件地址 https://github.com/SagerNet/SagerNet +## 基于 Qt/C++ 的跨平台 GUI 代理配置管理器 +https://github.com/MatsuriDayo/nekoray +目前支持 Windows / Linux amd64 开箱即用 + ## License ``` From f6d7a0e2d875c2cb07f1f925e5bfdebbc58d780e Mon Sep 17 00:00:00 2001 From: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> Date: Wed, 19 Oct 2022 07:32:15 +0800 Subject: [PATCH 06/16] Update README.md Signed-off-by: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f71a8ad7..e68d20d2 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,8 @@ https://github.com/MatsuriDayo/Matsuri https://github.com/SagerNet/SagerNet ## 基于 Qt/C++ 的跨平台 GUI 代理配置管理器 -https://github.com/MatsuriDayo/nekoray -目前支持 Windows / Linux amd64 开箱即用 + +目前支持 Windows / Linux amd64 开箱即用 https://github.com/MatsuriDayo/nekoray ## License From 153d232afca4f285bd8935e8a74fc3837a5c8893 Mon Sep 17 00:00:00 2001 From: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> Date: Wed, 19 Oct 2022 07:33:43 +0800 Subject: [PATCH 07/16] Update README.md Signed-off-by: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index e68d20d2..a1c03ba4 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # sing-box 网络代理平台的“瑞士军刀” +### https://github.com/SagerNet/sing-box + 通用代理平台 The universal proxy platform. ## 文档 Documentation From eb420be12df732548009e250953035e16f71fc48 Mon Sep 17 00:00:00 2001 From: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> Date: Wed, 19 Oct 2022 09:49:00 +0800 Subject: [PATCH 08/16] Update README.md Signed-off-by: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index a1c03ba4..bc331c82 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,9 @@ https://github.com/SagerNet/SagerNet 目前支持 Windows / Linux amd64 开箱即用 https://github.com/MatsuriDayo/nekoray +# 方便快捷的安装、管理sing-box +https://github.com/FranzKafkaYu/sing-box-yes + ## License ``` @@ -36,3 +39,6 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . ``` +# 致谢 +# SagerNet/sing-box +# # 致谢所有贡献者 From d0aa2471bfaf5b5726063da202f7163f29274ffe Mon Sep 17 00:00:00 2001 From: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> Date: Wed, 19 Oct 2022 09:49:53 +0800 Subject: [PATCH 09/16] Update README.md Signed-off-by: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bc331c82..effac00a 100644 --- a/README.md +++ b/README.md @@ -8,17 +8,17 @@ https://sing-box.sagernet.org -## Matsuri (茉莉) for Android +### Matsuri (茉莉) for Android 安卓端支持软件Matsuri https://github.com/MatsuriDayo/Matsuri 安卓端插件地址 https://github.com/SagerNet/SagerNet -## 基于 Qt/C++ 的跨平台 GUI 代理配置管理器 +### 基于 Qt/C++ 的跨平台 GUI 代理配置管理器 目前支持 Windows / Linux amd64 开箱即用 https://github.com/MatsuriDayo/nekoray -# 方便快捷的安装、管理sing-box +### 方便快捷的安装、管理sing-box https://github.com/FranzKafkaYu/sing-box-yes ## License @@ -40,5 +40,5 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . ``` # 致谢 -# SagerNet/sing-box -# # 致谢所有贡献者 +SagerNet/sing-box +# 致谢所有贡献者 From 2f807a540249bc061b9f17f8b2d4e3b647e2ec1b Mon Sep 17 00:00:00 2001 From: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> Date: Wed, 19 Oct 2022 17:17:59 +0800 Subject: [PATCH 10/16] Update README.md Signed-off-by: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index effac00a..ce401464 100644 --- a/README.md +++ b/README.md @@ -41,4 +41,4 @@ along with this program. If not, see . ``` # 致谢 SagerNet/sing-box -# 致谢所有贡献者 +# 致谢所有github贡献者 From f7d1381e6af12bd0155a0f9567a450fc22b20ea2 Mon Sep 17 00:00:00 2001 From: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> Date: Thu, 20 Oct 2022 10:04:08 +0800 Subject: [PATCH 11/16] Update README.md Signed-off-by: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> --- README.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ce401464..4186df01 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,16 @@ # sing-box 网络代理平台的“瑞士军刀” -### https://github.com/SagerNet/sing-box +### 官方网址:https://github.com/SagerNet/sing-box 通用代理平台 The universal proxy platform. -## 文档 Documentation +## 官方文档 Documentation https://sing-box.sagernet.org ### Matsuri (茉莉) for Android 安卓端支持软件Matsuri -https://github.com/MatsuriDayo/Matsuri +官方网址:https://github.com/MatsuriDayo/Matsuri 安卓端插件地址 https://github.com/SagerNet/SagerNet @@ -18,8 +18,15 @@ https://github.com/SagerNet/SagerNet 目前支持 Windows / Linux amd64 开箱即用 https://github.com/MatsuriDayo/nekoray -### 方便快捷的安装、管理sing-box -https://github.com/FranzKafkaYu/sing-box-yes +### 一键安装、管理sing-box +网址:https://github.com/FranzKafkaYu/sing-box-yes + +### nstall Golang terbaru. +```jaon +cd +curl -fsL https://raw.githubusercontent.com/jetsung/golang-install/main/install.sh | bash +source /root/.bashrc +``` ## License From d828c616155d7b06f03eb06d1ed9dd76fefa8e60 Mon Sep 17 00:00:00 2001 From: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> Date: Thu, 20 Oct 2022 10:09:12 +0800 Subject: [PATCH 12/16] Update README.md Signed-off-by: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4186df01..c186a3d1 100644 --- a/README.md +++ b/README.md @@ -21,12 +21,19 @@ https://github.com/SagerNet/SagerNet ### 一键安装、管理sing-box 网址:https://github.com/FranzKafkaYu/sing-box-yes -### nstall Golang terbaru. +### 安装 + +sing-box 需要 Golang 1.18.5 或更高版本 +### 安装 Golang ```jaon cd curl -fsL https://raw.githubusercontent.com/jetsung/golang-install/main/install.sh | bash source /root/.bashrc ``` +### 安装最新的 sing-box 版本 +``` +go install -v github.com/sagernet/sing-box/cmd/sing-box@latest +```` ## License From d90f72a99b063e201e5c232b393168ffd4209613 Mon Sep 17 00:00:00 2001 From: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> Date: Thu, 20 Oct 2022 10:12:28 +0800 Subject: [PATCH 13/16] Update README.md Signed-off-by: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c186a3d1..d686640e 100644 --- a/README.md +++ b/README.md @@ -24,16 +24,21 @@ https://github.com/SagerNet/SagerNet ### 安装 sing-box 需要 Golang 1.18.5 或更高版本 -### 安装 Golang -```jaon +#### 安装 Golang +``` cd curl -fsL https://raw.githubusercontent.com/jetsung/golang-install/main/install.sh | bash source /root/.bashrc ``` -### 安装最新的 sing-box 版本 +#### 安装最新的 sing-box 版本 ``` go install -v github.com/sagernet/sing-box/cmd/sing-box@latest ```` +#### 自定义安装,具体方法看官方文档 https://sing-box.sagernet.org +``` +例: +go install -v -tags "with_acme with_clash_api with_quic with_grpc with_wireguard with_ech with_utls with_gvisor with_shadowsocksr" github.com/sagernet/sing-box/cmd/sing-box@dev-next +``` ## License From 7a137ef786add2a3a882c647833970b1b62db760 Mon Sep 17 00:00:00 2001 From: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> Date: Thu, 20 Oct 2022 10:25:11 +0800 Subject: [PATCH 14/16] Update README.md Signed-off-by: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index d686640e..ac832c9b 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,20 @@ go install -v github.com/sagernet/sing-box/cmd/sing-box@latest 例: go install -v -tags "with_acme with_clash_api with_quic with_grpc with_wireguard with_ech with_utls with_gvisor with_shadowsocksr" github.com/sagernet/sing-box/cmd/sing-box@dev-next ``` +### 设置 DNS +Disini akan menggantikan default dns dari WAN/Modem. + +add resolver updater 来自https://github.com/malikshi/sing_box +``` +wget -O /usr/local/bin/u-resolver https://raw.githubusercontent.com/malikshi/sing_box/main/u-resolver.sh && chmod +x /usr/local/bin/u-resolver && u-resolver +``` + +### 设置 sing-box +Download GEO Assets +``` +wget -c -P /etc/sing-box/ "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db" +wget -c -P /etc/sing-box/ "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db" +``` ## License From 7b5dff9af24c19c80935466a73ecda5b3e625c35 Mon Sep 17 00:00:00 2001 From: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> Date: Thu, 20 Oct 2022 19:01:31 +0800 Subject: [PATCH 15/16] Create sing-box.yml Signed-off-by: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> --- .github/工作流程/sing-box.yml | 143 ++++++++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 .github/工作流程/sing-box.yml diff --git a/.github/工作流程/sing-box.yml b/.github/工作流程/sing-box.yml new file mode 100644 index 00000000..3eb65af4 --- /dev/null +++ b/.github/工作流程/sing-box.yml @@ -0,0 +1,143 @@ +name: Build sing-box + +on: + workflow_dispatch: + + release: + types: + - 'prereleased' + - 'published' + - 'released' + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + config: + - { + name: "windows-386", + GOARCH: 386, + GOOS: windows, + release: true + } + - { + name: "windows-amd64", + GOARCH: amd64, + GOOS: windows, + release: true + } + - { + name: "linux-amd64", + GOARCH: amd64, + GOOS: linux, + release: true + } + - { + name: "linux-arm64", + GOARCH: arm64, + GOOS: linux, + release: true + } + - { + name: "freebsd-amd64", + GOARCH: amd64, + GOOS: freebsd, + release: true + } + - { + name: "freebsd-arm", + GOARCH: arm, + GOOS: linux, + release: true + } + - { + name: "darwin-arm64", + GOARCH: arm64, + GOOS: darwin, + release: true + } + - { + name: "darwin-amd64", + GOARCH: amd64, + GOOS: darwin, + release: true + } + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install go + uses: actions/setup-go@v3 + with: + go-version: '1.19.2' + check-latest: true + + - name: Build sing-box + run: | + mkdir release-tmp + export GOARCH=${{ matrix.config.GOARCH }} + export GOOS=${{ matrix.config.GOOS }} + ~/go install -v -tags \ + --with_quic,\ + --with_grpc,\ + --with_wireguard,\ + --with_shadowsocksr,\ + --with_ech,with_utls,\ + --with_acme,\ + --with_clash_api,\ + --with_gvisor,\ + --with_embedded_tor,\ + --with_lwip \ + --with github.com/sagernet/sing-box/cmd/sing-box@v1.1-beta10 \ + --output ./release-tmp/sing-box + + - name: Rename for Windows + if: matrix.config.GOOS == 'windows' + run: | + mv ./release-tmp/sing-box ./release-tmp/sing-box.exe + + - name: Calculate Hash + run: | + cd ./release-tmp || exit 1 + sha256sum * > sha256 + + - name: Generate zip for Windows + if: matrix.config.GOOS == 'windows' + run: | + mkdir release-ready + cd ./release-tmp + zip -r ../release-ready/sing-box-${{ matrix.config.name }}.zip * + + - name: Generate tar for other platform + if: matrix.config.GOOS != 'windows' + run: | + mkdir release-ready + cd ./release-tmp + tar -zcvf ../release-ready/sing-box-${{ matrix.config.name }}.tar.gz * + + - name: Upload a Build Artifact + uses: actions/upload-artifact@v3 + with: + name: caddy-${{ github.sha }}-${{ matrix.config.name }} + path: ./release-ready/* + + - name: Upload to GitHub Release for Windows + uses: svenstaro/upload-release-action@v2 + if: github.event_name == 'release' && matrix.config.release && matrix.config.GOOS == 'windows' + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ./release-ready/sing-box-${{ matrix.config.name }}.zip + tag: ${{ github.ref }} + overwrite: true + + - name: Upload to GitHub Release for other platform + uses: svenstaro/upload-release-action@v2 + if: github.event_name == 'release' && matrix.config.release && matrix.config.GOOS != 'windows' + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ./release-ready/caddy-${{ matrix.config.name }}.tar.gz + tag: ${{ github.ref }} + overwrite: true From 74fbd619fec9e0ac330e1b8e3a7268b450c2d4fd Mon Sep 17 00:00:00 2001 From: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> Date: Thu, 20 Oct 2022 19:09:23 +0800 Subject: [PATCH 16/16] Create sing-box.yml Signed-off-by: MINGERTAI <104557080+MINGERTAI@users.noreply.github.com> --- .github/workflows/sing-box.yml | 143 +++++++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 .github/workflows/sing-box.yml diff --git a/.github/workflows/sing-box.yml b/.github/workflows/sing-box.yml new file mode 100644 index 00000000..3eb65af4 --- /dev/null +++ b/.github/workflows/sing-box.yml @@ -0,0 +1,143 @@ +name: Build sing-box + +on: + workflow_dispatch: + + release: + types: + - 'prereleased' + - 'published' + - 'released' + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + config: + - { + name: "windows-386", + GOARCH: 386, + GOOS: windows, + release: true + } + - { + name: "windows-amd64", + GOARCH: amd64, + GOOS: windows, + release: true + } + - { + name: "linux-amd64", + GOARCH: amd64, + GOOS: linux, + release: true + } + - { + name: "linux-arm64", + GOARCH: arm64, + GOOS: linux, + release: true + } + - { + name: "freebsd-amd64", + GOARCH: amd64, + GOOS: freebsd, + release: true + } + - { + name: "freebsd-arm", + GOARCH: arm, + GOOS: linux, + release: true + } + - { + name: "darwin-arm64", + GOARCH: arm64, + GOOS: darwin, + release: true + } + - { + name: "darwin-amd64", + GOARCH: amd64, + GOOS: darwin, + release: true + } + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install go + uses: actions/setup-go@v3 + with: + go-version: '1.19.2' + check-latest: true + + - name: Build sing-box + run: | + mkdir release-tmp + export GOARCH=${{ matrix.config.GOARCH }} + export GOOS=${{ matrix.config.GOOS }} + ~/go install -v -tags \ + --with_quic,\ + --with_grpc,\ + --with_wireguard,\ + --with_shadowsocksr,\ + --with_ech,with_utls,\ + --with_acme,\ + --with_clash_api,\ + --with_gvisor,\ + --with_embedded_tor,\ + --with_lwip \ + --with github.com/sagernet/sing-box/cmd/sing-box@v1.1-beta10 \ + --output ./release-tmp/sing-box + + - name: Rename for Windows + if: matrix.config.GOOS == 'windows' + run: | + mv ./release-tmp/sing-box ./release-tmp/sing-box.exe + + - name: Calculate Hash + run: | + cd ./release-tmp || exit 1 + sha256sum * > sha256 + + - name: Generate zip for Windows + if: matrix.config.GOOS == 'windows' + run: | + mkdir release-ready + cd ./release-tmp + zip -r ../release-ready/sing-box-${{ matrix.config.name }}.zip * + + - name: Generate tar for other platform + if: matrix.config.GOOS != 'windows' + run: | + mkdir release-ready + cd ./release-tmp + tar -zcvf ../release-ready/sing-box-${{ matrix.config.name }}.tar.gz * + + - name: Upload a Build Artifact + uses: actions/upload-artifact@v3 + with: + name: caddy-${{ github.sha }}-${{ matrix.config.name }} + path: ./release-ready/* + + - name: Upload to GitHub Release for Windows + uses: svenstaro/upload-release-action@v2 + if: github.event_name == 'release' && matrix.config.release && matrix.config.GOOS == 'windows' + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ./release-ready/sing-box-${{ matrix.config.name }}.zip + tag: ${{ github.ref }} + overwrite: true + + - name: Upload to GitHub Release for other platform + uses: svenstaro/upload-release-action@v2 + if: github.event_name == 'release' && matrix.config.release && matrix.config.GOOS != 'windows' + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ./release-ready/caddy-${{ matrix.config.name }}.tar.gz + tag: ${{ github.ref }} + overwrite: true