Skip to content

Commit ea2540b

Browse files
authored
Merge pull request bitly#381 from ploxiln/dist_strip
dist.sh: use go build option to strip binaries
2 parents b90a234 + 68e3178 commit ea2540b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dist.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ for os in windows linux darwin; do
2525
fi
2626
BUILD=$(mktemp -d ${TMPDIR:-/tmp}/oauth2_proxy.XXXXXX)
2727
TARGET="oauth2_proxy-$version.$os-$arch.$goversion"
28-
GOOS=$os GOARCH=$arch CGO_ENABLED=0 go build -o $BUILD/$TARGET/oauth2_proxy$EXT || exit 1
28+
GOOS=$os GOARCH=$arch CGO_ENABLED=0 \
29+
go build -ldflags="-s -w" -o $BUILD/$TARGET/oauth2_proxy$EXT || exit 1
2930
pushd $BUILD
3031
tar czvf $TARGET.tar.gz $TARGET
3132
mv $TARGET.tar.gz $DIR/dist

version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package main
22

3-
const VERSION = "2.2.0"
3+
const VERSION = "2.2.1-alpha"

0 commit comments

Comments
 (0)