Fix cask font paths: include homebrew-fonts/ archive prefix

Homebrew moves the extracted archive directory into the Caskroom
without stripping the top-level name, so font artifact paths need
the homebrew-fonts/ prefix.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Matt Troutman 2026-03-07 21:40:58 -06:00
parent 76743cdc4d
commit c85bbccd26
No known key found for this signature in database
135 changed files with 595 additions and 592 deletions

View file

@ -20,9 +20,9 @@ class HomebrewCaskGenerator:
ttf_dir = font_dir / "ttf"
for f in sorted(ttf_dir.iterdir()):
if f.is_file() and f.suffix.lower() in (".ttf", ".ttc"):
files.append(f"font_files/{font_name}/ttf/{f.name}")
files.append(f"homebrew-fonts/font_files/{font_name}/ttf/{f.name}")
for otf in sorted((font_dir / "otf").glob("*.otf")):
files.append(f"font_files/{font_name}/otf/{otf.name}")
files.append(f"homebrew-fonts/font_files/{font_name}/otf/{otf.name}")
return files
def _collect_all_info(self, font_dir: Path) -> dict: