Skip to content

Commit

Permalink
Update .goreleaser.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Jun 26, 2023
1 parent ff7b506 commit d508e19
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,19 @@ builds:
main: .
binary: nezha

## dev env
# - id: darwin-amd64
# env:
# - CGO_ENABLED=1
# ldflags:
# - -s -w -X main.version={{.Version}} -X main.arch={{.Arch}}
# goos:
# - darwin
# goarch:
# - amd64
# main: .
# binary: nezha
# dev env
- id: darwin-amd64
env:
- CGO_ENABLED=0
- CGO_LDFLAGS="-static"
ldflags:
- -s -w -X main.version={{.Version}} -X main.arch={{.Arch}}
goos:
- darwin
goarch:
- amd64
main: .
binary: nezha
universal_binaries:
- name_template: "nezha"
replace: false
Expand Down

0 comments on commit d508e19

Please sign in to comment.