switch back to old builds names format; delete files before build

This commit is contained in:
blek 2023-11-03 03:19:57 +10:00
parent 040db92caa
commit 79e2b5c986
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 10 additions and 8 deletions

18
ci.sh
View File

@ -2,15 +2,17 @@
. ./package.env . ./package.env
GOOS=linux GOARCH=386 go build -o "bfile_cli.$VERSION.linux.i386" -ldflags "-s -w -X main.version=$VERSION" . & rm $(find . -type f | grep -E ^\./bfile_cli.\*)
GOOS=linux GOARCH=amd64 go build -o "bfile_cli.$VERSION.linux.amd64" -ldflags "-s -w -X main.version=$VERSION" . &
GOOS=linux GOARCH=arm64 go build -o "bfile_cli.$VERSION.linux.arm64" -ldflags "-s -w -X main.version=$VERSION" . &
GOOS=windows GOARCH=386 go build -o "bfile_cli.$VERSION.windows.i386.exe" -ldflags "-s -w -X main.version=$VERSION" . & GOOS=linux GOARCH=386 go build -o "bfile_cli.linux.i386" -ldflags "-s -w -X main.version=$VERSION" . &
GOOS=windows GOARCH=amd64 go build -o "bfile_cli.$VERSION.windows.amd64.exe" -ldflags "-s -w -X main.version=$VERSION" . & GOOS=linux GOARCH=amd64 go build -o "bfile_cli.linux.amd64" -ldflags "-s -w -X main.version=$VERSION" . &
GOOS=windows GOARCH=arm64 go build -o "bfile_cli.$VERSION.windows.arm64.exe" -ldflags "-s -w -X main.version=$VERSION" . & GOOS=linux GOARCH=arm64 go build -o "bfile_cli.linux.arm64" -ldflags "-s -w -X main.version=$VERSION" . &
GOOS=darwin GOARCH=amd64 go build -o "bfile_cli.$VERSION.darwin.amd64" -ldflags "-s -w -X main.version=$VERSION" . & GOOS=windows GOARCH=386 go build -o "bfile_cli.windows.i386.exe" -ldflags "-s -w -X main.version=$VERSION" . &
GOOS=darwin GOARCH=arm64 go build -o "bfile_cli.$VERSION.darwin.arm64" -ldflags "-s -w -X main.version=$VERSION" . & GOOS=windows GOARCH=amd64 go build -o "bfile_cli.windows.amd64.exe" -ldflags "-s -w -X main.version=$VERSION" . &
GOOS=windows GOARCH=arm64 go build -o "bfile_cli.windows.arm64.exe" -ldflags "-s -w -X main.version=$VERSION" . &
GOOS=darwin GOARCH=amd64 go build -o "bfile_cli.darwin.amd64" -ldflags "-s -w -X main.version=$VERSION" . &
GOOS=darwin GOARCH=arm64 go build -o "bfile_cli.darwin.arm64" -ldflags "-s -w -X main.version=$VERSION" . &
wait wait