Peekaboo/scripts/build-peekaboo-cli.sh
2025-05-25 01:28:06 +02:00

18 lines
No EOL
381 B
Bash
Executable file

#!/bin/bash
set -e
echo "Building Swift CLI..."
# Change to peekaboo-cli directory
cd "$(dirname "$0")/../peekaboo-cli"
# Build the Swift CLI in release mode
swift build --configuration release
# Copy the binary to the root directory
cp .build/release/peekaboo ../peekaboo
# Make it executable
chmod +x ../peekaboo
echo "Swift CLI built successfully and copied to ./peekaboo"