17 lines
548 B
Bash
17 lines
548 B
Bash
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
mkdir -p bin
|
||
|
|
|
||
|
|
echo "Building for Linux..."
|
||
|
|
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o bin/infctl-linux-amd64
|
||
|
|
|
||
|
|
echo "Building for Windows..."
|
||
|
|
GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o bin/infctl-windows-amd64.exe
|
||
|
|
|
||
|
|
echo "Building for macOS (Intel)..."
|
||
|
|
GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o bin/infctl-darwin-amd64
|
||
|
|
|
||
|
|
echo "Building for macOS (Apple Silicon)..."
|
||
|
|
GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -o bin/infctl-darwin-arm64
|
||
|
|
|
||
|
|
echo "Build complete. Binaries are in the 'bin' directory."
|