aboutsummaryrefslogtreecommitdiff
path: root/Build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Build.sh')
-rwxr-xr-xBuild.sh15
1 files changed, 9 insertions, 6 deletions
diff --git a/Build.sh b/Build.sh
index 8a31e2c..57b1c16 100755
--- a/Build.sh
+++ b/Build.sh
@@ -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