#3 Prepare for release

This commit is contained in:
Sacha Ligthert 2025-01-24 00:23:00 +01:00
parent 5d02036f9e
commit 582e268d56
2 changed files with 11 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
builds

View File

@ -2,6 +2,10 @@
version: '3'
vars:
APP: sudoku-funpark
BUILD_DIR: builds
tasks:
default:
cmds:
@ -23,3 +27,9 @@ tasks:
cmds:
- golangci-lint run
silent: true
build:
cmds:
- mkdir -p {{.BUILD_DIR}}
- rm {{.BUILD_DIR}}/* || true
- go tool dist list | grep -v android | grep -v ios | grep -v wasip1 | awk -F '/' '{printf "echo Compiling %s/%s; env CGO_ENABLED=1 GOOS=%s GOARCH=%s go build -o {{.BUILD_DIR}}/{{.APP}}.%s-%s\n",$1,$2,$1,$2,$1,$2 }' | sh
- for i in `ls {{.BUILD_DIR}}/*windows*`; do mv -v $i $i.exe; done