#!/bin/bash # Cross-compilation build script for ARM64 (aarch64-unknown-linux-gnu) # Target: Raspberry Pi 4/5 running Linux set -e echo "Building meteor-edge-client for ARM64 target..." echo "Target: aarch64-unknown-linux-gnu" echo "----------------------------------------" # Build the project for ARM64 target cargo build --target=aarch64-unknown-linux-gnu --release if [ $? -eq 0 ]; then echo "✅ Build successful!" echo "Binary location: target/aarch64-unknown-linux-gnu/release/meteor-edge-client" echo "" echo "To deploy to Raspberry Pi:" echo "1. Copy the binary: scp target/aarch64-unknown-linux-gnu/release/meteor-edge-client pi@:~/" echo "2. SSH to Pi and run: ./meteor-edge-client version" else echo "❌ Build failed!" exit 1 fi