@@ -103,12 +103,12 @@ jobs:
103103 echo " ✓ Info.plist correctly nested inside Resources"
104104
105105 # Check that the actual binary exists and is valid
106- local binary_path="$variant_path/Versions/A/ESPeakNG "
106+ local binary_path="$variant_path/Versions/A/ESpeakNG "
107107 if [ ! -f "$binary_path" ]; then
108108 echo " ❌ ERROR: Binary not found at $binary_path"
109109 return 1
110110 fi
111- echo " ✓ Binary file exists: Versions/A/ESPeakNG "
111+ echo " ✓ Binary file exists: Versions/A/ESpeakNG "
112112
113113 # Verify it's a valid Mach-O binary
114114 local file_type
@@ -135,7 +135,7 @@ jobs:
135135 echo " ✓ Flat framework structure detected (iOS)"
136136
137137 # Check binary exists directly
138- local binary_path="$variant_path/ESPeakNG "
138+ local binary_path="$variant_path/ESpeakNG "
139139 if [ ! -f "$binary_path" ]; then
140140 echo " ❌ ERROR: Binary not found at ESpeakNG"
141141 return 1
@@ -184,8 +184,8 @@ jobs:
184184 for framework in "$FRAMEWORK_PATH"/**/ESpeakNG.framework/Versions/A; do
185185 if [ -d "$framework" ]; then
186186 # Use ls with grep to check for exact case typo on case-insensitive filesystems
187- if ls "$framework" 2>/dev/null | grep -x "ESPeakNG " > /dev/null; then
188- echo "❌ ERROR: Found 'ESPeakNG' (typo) instead of 'ESpeakNG' "
187+ if ! ls "$framework" 2>/dev/null | grep -x "ESpeakNG " > /dev/null; then
188+ echo "❌ ERROR: Binary 'ESpeakNG' not found with correct casing "
189189 echo " This would cause dyld errors at runtime"
190190 exit 1
191191 fi
0 commit comments