dify/evaluate/code-generator/build.sh
Kota-Yamaguchi 36ec1acf7f Add executables for multi-platform build:
- Windows (.exe)
- macOS (.app)
- Linux (binary)
2024-11-10 22:00:11 +09:00

17 lines
510 B
Bash
Executable File

#!/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."