Browse Source

Test MITM

世界 7 months ago
parent
commit
1189d88048

+ 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


File diff suppressed because it is too large
+ 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

Some files were not shown because too many files changed in this diff