2025-07-09 13:19:43 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
mkdir -p bin
|
|
|
|
|
|
|
|
|
|
echo "Building for Linux..."
|
|
|
|
|
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o bin/infctl-linux-amd64
|
|
|
|
|
|
2025-08-16 18:00:28 +01:00
|
|
|
echo "Building for Raspberry Pi (Linux ARM)..."
|
|
|
|
|
GOOS=linux GOARCH=arm GOARM=7 go build -ldflags="-s -w" -o bin/infctl-linux-armv7
|
|
|
|
|
|
|
|
|
|
echo "Building for Raspberry Pi (Linux ARM64)..."
|
|
|
|
|
GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -o bin/infctl-linux-arm64
|
|
|
|
|
|
2025-07-09 13:19:43 +01:00
|
|
|
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."
|