Fix build script
This commit is contained in:
parent
9883eb5a8c
commit
fe86afed2e
6
build.sh
6
build.sh
@ -6,17 +6,17 @@ export GOARCH=amd64
|
|||||||
export GOOS=windows
|
export GOOS=windows
|
||||||
go build -o ./build/$GOOS/mdview/ .
|
go build -o ./build/$GOOS/mdview/ .
|
||||||
pushd build/$GOOS
|
pushd build/$GOOS
|
||||||
7za a mdview.zip mdview
|
7za a mdview.$GOOS.zip mdview
|
||||||
popd
|
popd
|
||||||
|
|
||||||
export GOOS=linux
|
export GOOS=linux
|
||||||
go build -o ./build/$GOOS/mdview/ .
|
go build -o ./build/$GOOS/mdview/ .
|
||||||
pushd build/$GOOS
|
pushd build/$GOOS
|
||||||
tar czvf mdview.tar.gz mdview
|
tar czvf mdview.$GOOS.tar.gz mdview
|
||||||
popd
|
popd
|
||||||
|
|
||||||
export GOOS=darwin
|
export GOOS=darwin
|
||||||
go build -o ./build/$GOOS/mdview/ .
|
go build -o ./build/$GOOS/mdview/ .
|
||||||
pushd build/$GOOS
|
pushd build/$GOOS
|
||||||
tar czvf mdview.tar.gz mdview
|
tar czvf mdview.$GOOS.tar.gz mdview
|
||||||
popd
|
popd
|
||||||
|
Loading…
Reference in New Issue
Block a user