add separate taskfiles for x32,xair builds

This commit is contained in:
2026-02-07 04:24:58 +00:00
parent ba0b0eaee2
commit 5aa833e2ca
3 changed files with 59 additions and 28 deletions

23
Taskfile.build-x32.yml Normal file
View File

@@ -0,0 +1,23 @@
version: '3'
vars:
BIN_X32: x32-cli
tasks:
windows-amd64:
desc: Build the x32-cli project for Windows
cmds:
- GOOS=windows GOARCH=amd64 go build -o {{.BIN_DIR}}/{{.BIN_X32}}_windows_amd64.exe -ldflags="-X main.version={{.VERSION}}" ./cmd/{{.BIN_X32}}
internal: true
linux-amd64:
desc: Build the x32-cli project for Linux
cmds:
- GOOS=linux GOARCH=amd64 go build -o {{.BIN_DIR}}/{{.BIN_X32}}_linux_amd64 -ldflags="-X main.version={{.VERSION}}" ./cmd/{{.BIN_X32}}
internal: true
darwin-amd64:
desc: Build the x32-cli project for macOS
cmds:
- GOOS=darwin GOARCH=amd64 go build -o {{.BIN_DIR}}/{{.BIN_X32}}_darwin_amd64 -ldflags="-X main.version={{.VERSION}}" ./cmd/{{.BIN_X32}}
internal: true