Add self-healing path relocation for multi-disk portability, macOS native folder picker, and double-clickable launch.command

This commit is contained in:
drjones
2026-07-20 21:18:12 -07:00
parent 82e93972c1
commit 2d3ef6a06c
3 changed files with 68 additions and 7 deletions

20
launch.command Executable file
View File

@@ -0,0 +1,20 @@
#!/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