Add build script

This commit is contained in:
Sacha Ligthert 2023-11-24 22:48:27 +01:00
parent 763ed9b38a
commit 0732e7f809
2 changed files with 6 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
builds

5
build.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
mkdir -p builds
go tool dist list | grep -v android | grep -v darwin | grep -v ios | grep -v wasip1 | awk -F '/' '{printf "echo Compiling %s/%s; env CGO_ENABLED=1 GOOS=%s GOARCH=%s go build -o builds/snake.%s-%s\n",$1,$2,$1,$2,$1,$2 }' | sh