From c31797034ec36888207a2be8e00f4eec88d1d02d Mon Sep 17 00:00:00 2001 From: Ahmed AbouZaid Date: Tue, 27 Jun 2017 12:55:32 +0200 Subject: [PATCH] Add MD5 checksum to release process --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index bf205dd..8aca33e 100644 --- a/Makefile +++ b/Makefile @@ -18,8 +18,10 @@ $(PLATFORMS): mkdir -p $(DIST_DIR) env GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o $(DIST_DIR)/$(APPNAME).$(RELEASE).$@ +md5: dist + cd $(DIST_DIR) && md5sum $(APPNAME).$(RELEASE).* | tee MD5SUM -release: dist +release: md5 go get github.com/tcnksm/ghr if [ "x$$(git config --global --get github.token)" = "x" ]; then echo "Missing github.token in your git config"; fi - ghr -recreate -u crossengage $(RELEASE) dist/ + ghr -recreate -u crossengage $(RELEASE) $(DIST_DIR)