initial commit

This commit is contained in:
ston1th 2018-03-26 21:07:28 +02:00
commit 23199581da
5 changed files with 520 additions and 0 deletions

14
build.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
os="linux windows"
arch="386 amd64"
files="client server"
for o in ${os[@]}; do
[ "${o}" == "windows" ] && ext=".exe" || ext=
for a in ${arch[@]}; do
for f in ${files[@]}; do
GOOS=${o} GOARCH=${a} go build -ldflags '-s -w' -o ${f}_${o}_${a}${ext} ${f}.go
done
done
done