Skip to content

Commit

Permalink
gorelease
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjia404 committed Jun 15, 2023
1 parent 1a4e2a6 commit a0ab5a5
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# This is an example .goreleaser.yml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
project_name: zeronet2web
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- 386
- amd64
- arm
- arm64
- mipsle
ignore:
- goos: windows
goarch: arm
goarm: 6
- goos: windows
goarch: arm64
ldflags:
- -s -w -X main.gitRev="{{.ShortCommit}}" -X main.buildTime="{{.CommitDate}}"
asmflags:
- all=-trimpath={{.Env.GOPATH}}
- ./dontoptimizeme=-N
gcflags:
- all=-trimpath={{.Env.GOPATH}}

archives:
-
id: go-p2ptunnel
format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
format: zip



checksum:
name_template: 'checksums.txt'
algorithm: sha512
snapshot:
name_template: "{{ .Tag }}"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

0 comments on commit a0ab5a5

Please sign in to comment.