Skip to content

Commit

Permalink
do not compress (upx) the mac executable
Browse files Browse the repository at this point in the history
  • Loading branch information
kpym committed May 18, 2021
1 parent 42e7d11 commit 9e1c276
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,26 @@ before:
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
# windows and linux use upx compression
- id: gm1
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
ldflags:
- -s -w -X main.version={{.Version}}
hooks:
post:
- upx "{{ .Path }}"
# mac builds on github has problems with upx compression
- id: gm2
env:
- CGO_ENABLED=0
goos:
- darwin
ldflags:
- -s -w -X main.version={{.Version}}
archives:
- replacements:
darwin: MacOS
Expand Down

0 comments on commit 9e1c276

Please sign in to comment.