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:
parent
76743cdc4d
commit
c85bbccd26
135 changed files with 595 additions and 592 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue