Add executables for multi-platform build:

- Windows (.exe)
- macOS (.app)
- Linux (binary)
This commit is contained in:
Kota-Yamaguchi 2024-11-10 22:00:11 +09:00
parent 6524cfca99
commit 36ec1acf7f
5 changed files with 17 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,17 @@
#!/bin/bash
mkdir -p bin
echo "Building for Linux (amd64)..."
GOOS=linux GOARCH=amd64 go build -o bin/evaluate-code-linux ./cmd/
echo "Building for macOS (amd64)..."
GOOS=darwin GOARCH=amd64 go build -o bin/evaluate-code-mac ./cmd/
echo "Building for macOS (arm64)..."
GOOS=darwin GOARCH=arm64 go build -o bin/evaluate-code-mac-arm64 ./cmd/
echo "Building for Windows (amd64)..."
GOOS=windows GOARCH=amd64 go build -o bin/evaluate-code.exe ./cmd/
echo "Build complete! Binaries are in the bin directory."