#!/bin/bash
# 快速编译 Linux ARM64 二进制（仅编译，不打包）
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
PROJECT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
cd "$PROJECT_DIR"
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -o safesightd-linux-arm64 ./cmd/safesightd/
echo "✓ $(ls -lh safesightd-linux-arm64 | awk '{print $5,$NF}')"
