From 1972bc1d49523c9859972f3c6cd3a9e3b7350329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Sat, 10 Oct 2026 21:30:18 -0400 Subject: [PATCH] licenses.sh: Linux MuPDF fonts are objects under resources/fonts Co-Authored-By: Claude Opus 5.5 --- packaging/licenses.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packaging/licenses.sh b/packaging/licenses.sh index 47a40bb..7f29d75 100755 --- a/packaging/licenses.sh +++ b/packaging/licenses.sh @@ -44,10 +44,15 @@ case $slug in parts=$(python3 "$root/packaging/windows/mupdf-parts.py" "$root/engines/mupdf-src" parts) families=$(python3 "$root/packaging/windows/mupdf-parts.py" "$root/engines/mupdf-src" fonts) ;; - *) + Darwin) parts=$(ls "$root/engines/mupdf-build/thirdparty") families=$(ls "$root/engines/mupdf-build/generated/resources/fonts") ;; + *) + # Linux links the font files in as objects. + parts=$(ls "$root/engines/mupdf-build/thirdparty") + families=$(ls "$root/engines/mupdf-build/resources/fonts") + ;; esac for name in $parts; do found=$(find "$root/engines/mupdf-src/thirdparty/$name" -maxdepth 1 -type f \