Skip to content

Commit

Permalink
chore:增加goreleaser发布
Browse files Browse the repository at this point in the history
  • Loading branch information
0990 committed Mar 19, 2023
1 parent 513f6f8 commit 5c3054c
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -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:'

0 comments on commit 5c3054c

Please sign in to comment.