소스 검색

Test MITM

世界 7 달 전
부모
커밋
1189d88048
6개의 변경된 파일69개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      .github/goreleaser/README.md
  2. BIN
      .github/goreleaser/ca.crt
  3. 23 0
      .github/goreleaser/config.json
  4. 11 0
      .github/goreleaser/configure.sh
  5. 12 0
      .github/goreleaser/response.json
  6. 20 0
      release/local/install_minimal.sh

+ 3 - 0
.github/goreleaser/README.md

@@ -0,0 +1,3 @@
+# goreleaser
+
+I'm sorry for this, but I can't afford to renew for now because the subscription is too expensive for an open source project.

BIN
.github/goreleaser/ca.crt


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 23 - 0
.github/goreleaser/config.json


+ 11 - 0
.github/goreleaser/configure.sh

@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+set -e -o pipefail
+
+release/local/install_minimal.sh
+sudo cp .github/goreleaser/config.json /usr/local/etc/sing-box/config.json
+sudo mkdir -p /var/lib/sing-box/.github/goreleaser
+sudo cp .github/goreleaser/response.json /var/lib/sing-box/.github/goreleaser/response.json
+go run -v ./cmd/sing-box tools install-ca .github/goreleaser/ca.crt
+sudo systemctl start sing-box
+sleep 5

+ 12 - 0
.github/goreleaser/response.json

@@ -0,0 +1,12 @@
+{
+  "success": true,
+  "purchase": {
+    "license_key": "fake-key",
+    "subscription_id": "fake-id",
+    "product_id": "7ev6hHL7RZc753daE5bRNw==",
+    "product_permalink": "https:\/\/beckersoft.gumroad.com\/l\/goreleaser",
+    "seller_id": "A2wDalJj66fJdFU_jwy_oA==",
+    "short_product_id": "CadfZ",
+    "permalink": "goreleaser"
+  }
+}

+ 20 - 0
release/local/install_minimal.sh

@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+
+set -e -o pipefail
+
+if [ -d /usr/local/go ]; then
+  export PATH="$PATH:/usr/local/go/bin"
+fi
+
+DIR=$(dirname "$0")
+PROJECT=$DIR/../..
+
+pushd $PROJECT
+go install -v -trimpath -ldflags "-s -w -buildid=" ./cmd/sing-box
+popd
+
+sudo cp $(go env GOPATH)/bin/sing-box /usr/local/bin/
+sudo mkdir -p /usr/local/etc/sing-box
+sudo cp $PROJECT/release/config/config.json /usr/local/etc/sing-box/config.json
+sudo cp $DIR/sing-box.service /etc/systemd/system
+sudo systemctl daemon-reload

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.