From 6cdb3e2f9be05067fc40456ee84b874753de76ec Mon Sep 17 00:00:00 2001 From: deepzz0 Date: Sun, 25 Dec 2016 02:26:51 +0800 Subject: [PATCH] fix sh --- dist.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dist.sh b/dist.sh index 4bf34bd..1b593a5 100755 --- a/dist.sh +++ b/dist.sh @@ -8,6 +8,11 @@ for os in linux darwin windows; do echo "... building $version for $os/$arch" TARGET="eiblog-$version.$os-$arch" GOOS=$os GOARCH=$arch CGO_ENABLED=0 go build - tar czvf $TARGET.tar.gz conf static views eiblog - rm eiblog + if [ "$os" == "windows" ]; then + tar czvf $TARGET.tar.gz conf static views eiblog.exe + rm eiblog.exe + else + tar czvf $TARGET.tar.gz conf static views eiblog + rm eiblog + fi done