aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2020-11-21 15:45:25 -0500
committerMitch Riedstra <mitch@riedstra.us>2020-11-21 15:45:25 -0500
commit2eca9c19a96aeef8f1b5deabe6dbd71fc688d566 (patch)
tree32919ee67d397b8a6181e83cb24551e6f35d98c0
parent36dc9ff10971cf97eb077907072c519cb5349fe4 (diff)
downloadsteam-export-2eca9c19a96aeef8f1b5deabe6dbd71fc688d566.tar.gz
steam-export-2eca9c19a96aeef8f1b5deabe6dbd71fc688d566.tar.xz
Adjust the build script
-rwxr-xr-xBuild.sh21
-rw-r--r--build.sh6
2 files changed, 3 insertions, 24 deletions
diff --git a/Build.sh b/Build.sh
deleted file mode 100755
index 916394a..0000000
--- a/Build.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/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
diff --git a/build.sh b/build.sh
index 916394a..90ce8b1 100644
--- a/build.sh
+++ b/build.sh
@@ -6,16 +6,16 @@ if ! [ -d bin ] ; then
mkdir bin
fi
-commands=cli
+commands="cli web"
for cmd in $commands ; do
export GOOS=windows
export GOARCH=amd64
-go build -o bin/steam-export-$GOOS-$GOARCH.exe ./cmd/$cmd
+go build -o bin/steam-export-$cmd-$GOOS-$GOARCH.exe ./cmd/$cmd
export GOOS=linux
export GOARCH=amd64
-go build -o bin/steam-export-$GOOS-$GOARCH ./cmd/$cmd
+go build -o bin/steam-export-$cmd-$GOOS-$GOARCH ./cmd/$cmd
done