add: goreleaser

This commit is contained in:
2024-03-12 02:24:23 +08:00
parent 54d6eb0f75
commit 8c115a82ff
3 changed files with 49 additions and 1 deletions

19
.goreleaser.yaml Normal file
View File

@@ -0,0 +1,19 @@
project_name: sub2sing-box
builds:
- env:
- CGO_ENABLED=0
goos:
- windows
- linux
- darwin
goarch:
- amd64
- arm64
- arm
- "386"
ldflags:
- -s -w
no_unique_dist_dir: true
binary: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
archives:
- format: binary