aboutsummaryrefslogtreecommitdiff
path: root/build.sh
blob: 90ce8b1cc06ea5e3c0fd8caa20752ab4f64c74f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
set -e
set -x

if ! [ -d bin ] ; then
	mkdir bin
fi

commands="cli web"

for cmd in $commands ; do

export GOOS=windows
export GOARCH=amd64
go build -o bin/steam-export-$cmd-$GOOS-$GOARCH.exe ./cmd/$cmd

export GOOS=linux
export GOARCH=amd64
go build -o bin/steam-export-$cmd-$GOOS-$GOARCH ./cmd/$cmd

done