1
Fork 0

Add build script

This commit is contained in:
Alex Yatskov 2022-05-08 11:13:02 -07:00
parent 5f75ba5c3e
commit c87e4dc433
2 changed files with 23 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
build

22
build.sh Executable file
View File

@ -0,0 +1,22 @@
#!/usr/bin/bash
rm -rf ./build
export GOARCH=amd64
export GOOS=windows
go build -o ./build/$GOOS/mdv/ .
pushd build/$GOOS
7za a mdv.zip mdv
popd
export GOOS=linux
go build -o ./build/$GOOS/mdv/ .
pushd build/$GOOS
tar czvf mdv.tar.gz mdv
popd
export GOOS=darwin
go build -o ./build/$GOOS/mdv/ .
pushd build/$GOOS
tar czvf mdv.tar.gz mdv
popd