@@ -30,30 +30,15 @@ buildkite-agent artifact download "fastlane/screenshots-*/**/*" . --step "take-s
3030echo " --- :chart_with_upwards_trend: Generate Screenshot Summary"
3131bundle exec fastlane create_screenshot_summary
3232
33- echo " --- :arrow_down: Install Promo Screenshot Fonts "
33+ echo " --- :information_source: Check Font Availability "
3434cd ..
35- # Download fonts from artifacts (assuming fonts are uploaded as artifacts in a separate step)
36- buildkite-agent artifact download " fonts.zip" . --step " prepare-fonts" || echo " No fonts artifact found, continuing without promo fonts"
37- if [ -f " fonts.zip" ]; then
38- unzip fonts.zip
39- fi
40-
41- # Install fonts system-wide and user-level (only if fonts exist)
42- if [ -d " fonts" ] && [ " $( ls -A fonts/* .otf 2> /dev/null) " ]; then
43- mkdir -p ~ /Library/Fonts
44- cp -v fonts/* .otf ~ /Library/Fonts
45- ls ~ /Library/Fonts
46-
47- mkdir -p /Library/Fonts
48- sudo cp -v fonts/* .otf /Library/Fonts
49- ls /Library/Fonts
50-
51- # Reset the font server to recognize new fonts
52- atsutil databases -removeUser
53- atsutil server -shutdown
54- atsutil server -ping
35+ # Check if Proxima Nova is available (should be included in macOS Sonoma and above)
36+ if fc-list | grep -i " proxima" > /dev/null 2>&1 ; then
37+ echo " Proxima Nova font found"
38+ elif system_profiler SPFontsDataType | grep -i " proxima" > /dev/null 2>&1 ; then
39+ echo " Proxima Nova font found via system_profiler"
5540else
56- echo " No fonts found, skipping font installation "
41+ echo " Warning: Proxima Nova font not found - promo screenshots may not render correctly "
5742fi
5843
5944echo " --- :art: Generate Promo Screenshots"
0 commit comments