#!/bin/bash # PHOTON — Double-click macOS launcher # Automatically starts the server and opens the console in your default web browser. CD_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd "$CD_DIR" echo "=======================================================" echo " PHOTON — Local Photo Intelligence Console Launch " echo "=======================================================" echo "" echo "Starting local HTTP server..." python3 server.py & SERVER_PID=$! sleep 1.5 echo "Opening browser at http://localhost:8765 ..." open "http://localhost:8765" wait $SERVER_PID