Skip to content

Instantly share code, notes, and snippets.

@jimfilippou
Last active February 4, 2023 06:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimfilippou/6d3d4906f289fcb256527c8eba4b557f to your computer and use it in GitHub Desktop.
Save jimfilippou/6d3d4906f289fcb256527c8eba4b557f to your computer and use it in GitHub Desktop.
all: windows-amd64 macos-arm64
windows-amd64:
mkdir -p dist
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CXX=x86_64-w64-mingw32-g++ CC=x86_64-w64-mingw32-gcc go build -o dist/main-windows-amd64.exe main.go
macos-arm64:
GOOS=darwin GOARCH=arm64 go build -o dist/main-macos-arm64 main.go
clean:
rm -rf dist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment