1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00
wakapi/scripts/build.sh

14 lines
321 B
Bash
Raw Normal View History

2020-03-31 13:22:17 +03:00
#!/bin/bash
OSLIST=( darwin linux windows )
ARCHLIST=( amd64 )
VERSION=$(cat version.txt)
for os in ${OSLIST[*]}
do
for arch in ${ARCHLIST[*]}
do
2020-03-31 13:51:36 +03:00
echo "Building $os / $arch"
GOOS=$os GOARCH=$arch go build -o "build/wakapi_${VERSION}_${os}_${arch}" "github.com/muety/wakapi"
2020-03-31 13:22:17 +03:00
done
done