Skip to content

Commit 9b6b3c5

Browse files
committed
Remove custom font download and installation as it should be available in macOS Sonoma and above.
1 parent 4b8dfe3 commit 9b6b3c5

File tree

1 file changed

+7
-22
lines changed

1 file changed

+7
-22
lines changed

.buildkite/commands/process-screenshots.sh

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -30,30 +30,15 @@ buildkite-agent artifact download "fastlane/screenshots-*/**/*" . --step "take-s
3030
echo "--- :chart_with_upwards_trend: Generate Screenshot Summary"
3131
bundle exec fastlane create_screenshot_summary
3232

33-
echo "--- :arrow_down: Install Promo Screenshot Fonts"
33+
echo "--- :information_source: Check Font Availability"
3434
cd ..
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"
5540
else
56-
echo "No fonts found, skipping font installation"
41+
echo "Warning: Proxima Nova font not found - promo screenshots may not render correctly"
5742
fi
5843

5944
echo "--- :art: Generate Promo Screenshots"

0 commit comments

Comments
 (0)