#!/bin/bash
# NIP Build Script

set -e

echo "🔨 Building NIP..."
echo ""

# Build with optimizations
nim c -d:release --opt:speed --hints:off --warnings:off nip.nim

# Strip debug symbols for smaller binary
strip nip

echo ""
echo "✅ Build complete!"
echo "   Binary: nip"
echo "   Size: $(du -h nip | cut -f1)"
echo ""
echo "To install: sudo ./install.sh"
