Add self-healing path relocation for multi-disk portability, macOS native folder picker, and double-clickable launch.command
This commit is contained in:
20
launch.command
Executable file
20
launch.command
Executable 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
|
||||
Reference in New Issue
Block a user