diff options
Diffstat (limited to 'Build.sh')
| -rwxr-xr-x | Build.sh | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -1,22 +1,25 @@ #!/bin/sh - +set -e +set -x if ! [ -d bin ] ; then mkdir bin fi -go build -o bin/steam-export . +commands=cli + +for cmd in $commands ; do export GOOS=windows export GOARCH="386" -go build -o bin/steam-export-$GOOS-$GOARCH.exe . +go build -o bin/steam-export-$GOOS-$GOARCH.exe ./cmd/$cmd export GOOS=windows export GOARCH=amd64 -go build -o bin/steam-export-$GOOS-$GOARCH.exe . +go build -o bin/steam-export-$GOOS-$GOARCH.exe ./cmd/$cmd export GOOS=linux export GOARCH=amd64 -go build -o bin/steam-export-$GOOS-$GOARCH . +go build -o bin/steam-export-$GOOS-$GOARCH ./cmd/$cmd -cp bin/* /Fishtank/Mitch/SteamDrive/scripts/ +done |
