git.iko.soy/typeable/oauth2-proxy
on master help sign in
Merge pull request #354 from ploxiln/dist_win_exe

dist.sh: add .exe for windows build

commit7d920c98a625610d4d282fbf8f77b7555f7961f9 authorJehiah Czebotar <jehiah@gmail.com> dateMon 27 Mar 2017, 14:49 (10 years ago) parent8784731bc3fe00
1 file changed+5−1
dist.sh+5−1
dist.sh+5−1
@@ -20,9 +20,13 @@ echo "... running tests"
2020
2121for os in windows linux darwin; do
2222 echo "... building v$version for $os/$arch"
23+ EXT=
24+ if [ $os = windows ]; then
25+ EXT=".exe"
26+ fi
2327 BUILD=$(mktemp -d ${TMPDIR:-/tmp}/oauth2_proxy.XXXXXX)
2428 TARGET="oauth2_proxy-$version.$os-$arch.$goversion"
25− GOOS=$os GOARCH=$arch CGO_ENABLED=0 go build -o $BUILD/$TARGET/oauth2_proxy || exit 1
29+ GOOS=$os GOARCH=$arch CGO_ENABLED=0 go build -o $BUILD/$TARGET/oauth2_proxy$EXT || exit 1
2630 pushd $BUILD
2731 tar czvf $TARGET.tar.gz $TARGET
2832 mv $TARGET.tar.gz $DIR/dist