mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +08:00
fix sh
This commit is contained in:
@@ -8,6 +8,11 @@ for os in linux darwin windows; do
|
|||||||
echo "... building $version for $os/$arch"
|
echo "... building $version for $os/$arch"
|
||||||
TARGET="eiblog-$version.$os-$arch"
|
TARGET="eiblog-$version.$os-$arch"
|
||||||
GOOS=$os GOARCH=$arch CGO_ENABLED=0 go build
|
GOOS=$os GOARCH=$arch CGO_ENABLED=0 go build
|
||||||
tar czvf $TARGET.tar.gz conf static views eiblog
|
if [ "$os" == "windows" ]; then
|
||||||
rm eiblog
|
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
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user