#!/bin/bash
echo "Building TicTacToe Standalone Client..."
mvn clean package

if [ $? -eq 0 ]; then
    echo "--------------------------------------------------"
    echo "Build Successful!"
    echo "You can run the client with default settings (dokploy.lona-development.org):"
    echo "java -jar target/client-1.0-SNAPSHOT.jar"
    echo ""
    echo "Or specify a custom host and port (e.g. for local testing):"
    echo "java -jar target/client-1.0-SNAPSHOT.jar localhost 1870"
    echo "--------------------------------------------------"
else
    echo "Build Failed!"
    exit 1
fi
