diff --git a/.goreleaser.yml b/.goreleaser.yml index ccf9f99..e8ffdb9 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -11,16 +11,22 @@ builds: - env: - CGO_ENABLED=0 + goos: + - linux + + goarch: + - 386 + - amd64 + hooks: post: /bin/bash upx.sh archives: - replacements: - darwin: Darwin linux: Linux - windows: Windows 386: i386 amd64: x86_64 + checksum: name_template: "checksums.txt" snapshot: diff --git a/upx.sh b/upx.sh index ffd36c5..f377641 100644 --- a/upx.sh +++ b/upx.sh @@ -1,9 +1,9 @@ #!/bin/bash set -ex -for binary in $(dist/speedtest-go*/speedtest-go*) +for binary in $(ls dist/speedtest-go*/speedtest-go*) do - upx $binary & + upx --brute $binary & done wait \ No newline at end of file