Files
path-juggler/run_app_debug.sh

31 lines
975 B
Bash
Executable File

#!/bin/bash
#
# Run the built app from terminal to see error messages
#
# Try debug app first, then regular app
if [ -d "/Users/justinaspetravicius/Public/Gitea/path-juggler/dist/Path Juggler Debug.app" ]; then
APP_PATH="/Users/justinaspetravicius/Public/Gitea/path-juggler/dist/Path Juggler Debug.app/Contents/MacOS/Path Juggler Debug"
elif [ -d "/Users/justinaspetravicius/Public/Gitea/path-juggler/dist/Path Juggler.app" ]; then
APP_PATH="/Users/justinaspetravicius/Public/Gitea/path-juggler/dist/Path Juggler.app/Contents/MacOS/Path Juggler"
else
echo "Error: No app found in dist/"
echo ""
echo "Please build the app first using:"
echo " ./build_app.sh"
exit 1
fi
if [ ! -f "$APP_PATH" ]; then
echo "Error: App executable not found at:"
echo " $APP_PATH"
exit 1
fi
echo "Running Path Juggler with console output..."
echo "=========================================="
echo ""
# Run the app and capture output
"$APP_PATH" 2>&1