#!/usr/bin/env bash # Run camera-trng natively on macOS (AVFoundation camera access). # Docker on Mac cannot access the host camera — use this script instead. # Usage: ./scripts/run-mac.sh set -e cd "$(dirname "$0")/.." export PORT="${PORT:-8787}" echo "=== Camera TRNG (macOS) ===" echo "Building release binary..." cargo build --release 2>&1 echo "Starting camera-qrng on http://0.0.0.0:${PORT}" echo "Press Ctrl-C to stop." exec ./target/release/camera-qrng