Skip to content

Instantly share code, notes, and snippets.

@gbraad
Created September 4, 2023 03:27
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save gbraad/ae9a389d05af5f95d581a26b8607721e to your computer and use it in GitHub Desktop.
Cross build CRC
GOARCH=amd64 GOOS=windows go build -tags "containers_image_openpgp" -ldflags="-X github.com/crc-org/crc/pkg/crc/version.crcVersion=2.25.0 -X github.com/crc-org/crc/pkg/crc/version.ocpVersion=4.13.6 -X github.com/crc-org/crc/pkg/crc/version.okdVersion=4.13.0-0.okd-2023-06-04-080300 -X github.com/crc-org/crc/pkg/crc/version.podmanVersion=4.4.4 -X github.com/crc-org/crc/pkg/crc/version.microshiftVersion=4.13.6 -X github.com/crc-org/crc/pkg/crc/version.commitSha=7ae787 " -o out/windows-amd64/crc.exe  ./cmd/crc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment