Skip to content

Commit 5741709

Browse files
committed
no upx for win
1 parent fc57763 commit 5741709

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

Diff for: .goreleaser.yml

+17-15
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
# This is an example goreleaser.yaml file with some sane defaults.
22
# Make sure to check the documentation at http://goreleaser.com
33
builds:
4-
- env:
5-
- CGO_ENABLED=0
6-
ldflags:
7-
- -s -w -X github.com/bakito/toolbox/version.Version=v{{.Version}}
8-
goos:
9-
- linux
10-
- windows
11-
#- darwin
12-
goarch:
13-
# - 386
14-
- amd64
15-
hooks:
16-
post: upx {{ .Path }}
4+
- env:
5+
- CGO_ENABLED=0
6+
ldflags:
7+
- -s -w -X github.com/bakito/toolbox/version.Version=v{{.Version}}
8+
goos:
9+
- linux
10+
- windows
11+
#- darwin
12+
goarch:
13+
# - 386
14+
- amd64
15+
hooks:
16+
post:
17+
# don't upx windows binaries as they make trouble with virus scanners
18+
- bash -c 'if [[ "{{ .Path }}" != *.exe ]]; then upx {{ .Path }}; fi'
1719
checksum:
1820
name_template: 'checksums.txt'
1921
snapshot:
@@ -22,5 +24,5 @@ changelog:
2224
sort: asc
2325
filters:
2426
exclude:
25-
- '^docs:'
26-
- '^test:'
27+
- '^docs:'
28+
- '^test:'

0 commit comments

Comments
 (0)