diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2020-11-20 19:56:29 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2020-11-20 19:56:29 -0500 |
| commit | 971cc396e1d01f53f65a86278fd0ac4490565335 (patch) | |
| tree | 19d0a1e861590b5058ca682c2f5a33828414cf3d /Build.sh | |
| parent | 9ff47bdc17c70f87c78520d0636b2ff22918a408 (diff) | |
| download | steam-export-971cc396e1d01f53f65a86278fd0ac4490565335.tar.gz steam-export-971cc396e1d01f53f65a86278fd0ac4490565335.tar.xz | |
Reorganize. Update to use go modules.
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 |
