aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rw-r--r--build.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100644
index 0000000..916394a
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+set -e
+set -x
+
+if ! [ -d bin ] ; then
+ mkdir bin
+fi
+
+commands=cli
+
+for cmd in $commands ; do
+
+export GOOS=windows
+export GOARCH=amd64
+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 ./cmd/$cmd
+
+done