Skip to content

Commit 7063aa4

Browse files
committed
Update goreleaser.yml
1 parent 6199090 commit 7063aa4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ builds:
3636
- goos: darwin
3737
goarch: 386
3838
hooks:
39-
post: ./upx.sh
39+
post: ./upx.sh -9 "{{ .Path }}"
4040
archives:
4141
- format_overrides:
4242
- goos: windows

upx.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/sh
2-
(which upx > /dev/null && ls -1 dist/*/* | xargs -I{} -n1 -P 4 $(which upx) -9 "{}") || echo "not using upx for binary compression"
2+
upx "$@" || true

0 commit comments

Comments
 (0)