From d7e327d712101e13d8be50deebec2bbddc90fda4 Mon Sep 17 00:00:00 2001 From: Pierce Lopez Date: Mon, 24 Apr 2017 16:04:06 -0400 Subject: [PATCH 1/2] bump to version 2.2.1-alpha for development --- version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.go b/version.go index b6074ba..e5b063a 100644 --- a/version.go +++ b/version.go @@ -1,3 +1,3 @@ package main -const VERSION = "2.2.0" +const VERSION = "2.2.1-alpha" From 68e317881299c5e9c635348366638e97df8f9848 Mon Sep 17 00:00:00 2001 From: Pierce Lopez Date: Mon, 24 Apr 2017 16:04:36 -0400 Subject: [PATCH 2/2] dist.sh: use go build option to strip binaries 30% release binary size reduction --- dist.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dist.sh b/dist.sh index 99b13c6..18c5d02 100755 --- a/dist.sh +++ b/dist.sh @@ -25,7 +25,8 @@ for os in windows linux darwin; do fi BUILD=$(mktemp -d ${TMPDIR:-/tmp}/oauth2_proxy.XXXXXX) TARGET="oauth2_proxy-$version.$os-$arch.$goversion" - GOOS=$os GOARCH=$arch CGO_ENABLED=0 go build -o $BUILD/$TARGET/oauth2_proxy$EXT || exit 1 + GOOS=$os GOARCH=$arch CGO_ENABLED=0 \ + go build -ldflags="-s -w" -o $BUILD/$TARGET/oauth2_proxy$EXT || exit 1 pushd $BUILD tar czvf $TARGET.tar.gz $TARGET mv $TARGET.tar.gz $DIR/dist