From 28d70b6148096009e3c8447837beba074d7e3b39 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Thu, 23 Mar 2017 11:59:55 -0600 Subject: [PATCH] New: release with goreleaser Former-commit-id: 0714de93b3df45312d65ed61340b066515d10bae [formerly 23a3da72fd9edd64da8b30b0ead05ca4c440c709] [formerly 01d2da8eb8e0b9e5fba12ed5cc92e50c29aa9be6 [formerly 838f599daae4e00ea0f2bace01ddd8521f28a157]] Former-commit-id: 73bb360a0b18b0ad1b626b5a29a6e2e188b91257 [formerly 104088fcf4e6880a40436c7ff309747baea2640e] Former-commit-id: ffbc185e61ad872f99713d15289fc07b14bbaf80 Former-commit-id: b69ddc7cdbc8476a08559837650e73b3d62794cd --- goreleaser.yml | 16 ++++++++++++++++ script.sh | 3 +++ 2 files changed, 19 insertions(+) create mode 100644 goreleaser.yml create mode 100755 script.sh 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