diff --git a/goreleaser.yml b/goreleaser.yml new file mode 100644 index 0000000..62c5d4f --- /dev/null +++ b/goreleaser.yml @@ -0,0 +1,16 @@ +# goreleaser.yml +build: + binary: cowyo + + ldflags: -s -w + + goos: + - linux + - windows + + goarch: + - amd64 + + hooks: + pre: go-bindata static/... templates/... + post: /bin/sh script.sh \ No newline at end of file diff --git a/script.sh b/script.sh new file mode 100755 index 0000000..b6fcaf4 --- /dev/null +++ b/script.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -ex +upx dist/cowyo*/cowyo* \ No newline at end of file