This commit is contained in:
deepzz0
2016-12-25 02:26:51 +08:00
parent af65e3c192
commit 6cdb3e2f9b

View File

@@ -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