aboutsummaryrefslogtreecommitdiff
path: root/Build.sh
blob: 916394a767e9279ede137b7a5802f2357c0b7610 (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

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