diff --git a/bin/compile b/bin/compile index af0d0c1..53da375 100755 --- a/bin/compile +++ b/bin/compile @@ -156,3 +156,10 @@ export_env_dir() { export_env_dir "$ENV_DIR" PLAYWRIGHT_BUILDPACK_BROWSERS install_system_deps configure_export_env + +# Install AppleColorEmoji font for emoji rendering in Playwright screenshots +APPLE_EMOJI_URL="https://github.com/zhdsmy/apple-emoji/raw/ios-17.4/fonts/AppleColorEmoji.ttf" +FONT_DIR="$BUILD_DIR/.fonts" +mkdir -p "$FONT_DIR" +curl -L "$APPLE_EMOJI_URL" -o "$FONT_DIR/AppleColorEmoji.ttf" +HOME="$BUILD_DIR" fc-cache -f -v