1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-10 12:51:01 +02:00

fix: build

This commit is contained in:
Zackary Scholl 2025-08-03 08:37:26 -07:00
parent 40ba0acbc8
commit da8c1cd699

View file

@ -89,7 +89,9 @@ jobs:
- name: Build Windows 7 version
run: |
go version
go get golang.org/x/sys@v0.33.0
rm -rf go.mod go.sum
go mod init github.com/schollz/croc/v10
go mod tidy
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags '-extldflags "-static"' -o croc.exe
zip croc_${{ github.event.release.name }}_Windows7-64bit.zip croc.exe
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags '-extldflags "-static"' -o croc.exe