This commit is contained in:
Michael Freno
2026-01-08 10:37:03 -05:00
parent 3d8f4674dc
commit 650f5b2b15
7 changed files with 94 additions and 228 deletions

21
run
View File

@@ -4,7 +4,7 @@
# Usage: ./run [build|test|run]
# Default action is build and run
ACTION=${1:-build}
ACTION=${1:-run}
VERBOSE=false
OUTPUT_FILE=""
@@ -71,19 +71,16 @@ elif [ "$ACTION" = "test" ]; then
fi
elif [ "$ACTION" = "run" ]; then
echo "Running Gaze application..."
# First ensure we have a built app
if [ -d "build/Debug/Gaze.app" ]; then
echo "Building and running Gaze application..."
# Always build first, then run
run_with_output "xcodebuild -project Gaze.xcodeproj -scheme Gaze -configuration Debug build"
if [ $? -eq 0 ]; then
echo "✅ Build succeeded!"
run_with_output "open -a \"Gaze\""
else
echo "⚠️ No built app found. Building first..."
run_with_output "xcodebuild -project Gaze.xcodeproj -scheme Gaze -configuration Debug build"
if [ $? -eq 0 ]; then
run_with_output "open -a \"Gaze\""
else
echo "❌ Build failed during run attempt!"
exit 1
fi
echo "❌ Build failed!"
exit 1
fi
else