#!/usr/bin/env bash set -euo pipefail # Build Linux AMD64 binary for AWS CloudShell # Usage: ./build.linux.sh # # Output: dist/user.creation.tool SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" cd "$SCRIPT_DIR" mkdir -p dist echo "Building Linux AMD64 binary for AWS CloudShell..." echo " GOOS=linux GOARCH=amd64 CGO_ENABLED=0" GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o dist/user.creation.tool . echo "Built: dist/user.creation.tool"