mirror of
https://github.com/ap-pauloafonso/ratio-spoof.git
synced 2026-04-21 00:22:05 +00:00
improve sh script
This commit is contained in:
parent
6f8436d1ea
commit
715184d5c5
1 changed files with 14 additions and 1 deletions
15
build.sh
15
build.sh
|
|
@ -1,3 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
version=$1
|
||||
|
||||
if [ -z "$version" ]; then
|
||||
echo "usage: $0 <version>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rm -rf ./out
|
||||
|
||||
env GOOS=darwin GOARCH=amd64 go build -v -o ./out/mac/ratio-spoof github.com/ap-pauloafonso/ratio-spoof/cmd
|
||||
env GOOS=linux GOARCH=amd64 go build -v -o ./out/linux/ratio-spoof github.com/ap-pauloafonso/ratio-spoof/cmd
|
||||
env GOOS=windows GOARCH=amd64 go build -v -o ./out/windows/ratio-spoof.exe github.com/ap-pauloafonso/ratio-spoof/cmd
|
||||
env GOOS=windows GOARCH=amd64 go build -v -o ./out/windows/ratio-spoof.exe github.com/ap-pauloafonso/ratio-spoof/cmd
|
||||
|
||||
zip ./out/ratio-spoof-$version\(linux-mac-windows\).zip -r ./out
|
||||
|
|
|
|||
Loading…
Reference in a new issue