From 5c3054cd0d090fa872a95ad5d649181d4c6b4e25 Mon Sep 17 00:00:00 2001 From: xujialong Date: Sun, 19 Mar 2023 12:06:17 +0800 Subject: [PATCH] =?UTF-8?q?chore:=E5=A2=9E=E5=8A=A0goreleaser=E5=8F=91?= =?UTF-8?q?=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .goreleaser.yml | 52 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .goreleaser.yml diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..736cda6 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,52 @@ +# This is an example goreleaser.yaml file with some sane defaults. +# Make sure to check the documentation at http://goreleaser.com +before: + hooks: + # You may remove this if you don't use go modules. + - go mod download + # you may remove this if you don't need go generate + - go generate ./... +builds: +- + id: "tproxy2socks" + main: ./cmd/main.go + binary: "tproxy2socks" + goos: + - linux + goarch: + - amd64 + - arm + - arm64 + - mips + - mipsle + - mips64 + - mips64le + goarm: + - 6 + - 7 + gomips: + - hardfloat + - softfloat + env: + - CGO_ENABLED=0 +archives: +- + replacements: + darwin: Darwin + linux: Linux + windows: Windows + 386: i386 + amd64: x86_64 + arm64: arm64 + files: + +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ .Tag }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:'