From 971cc396e1d01f53f65a86278fd0ac4490565335 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Fri, 20 Nov 2020 19:56:29 -0500 Subject: Reorganize. Update to use go modules. --- Build.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'Build.sh') 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 -- cgit v1.2.3