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
|
|
@ -18,7 +18,8 @@ def test_cask_font_artifacts_are_installable(font_name):
|
|||
assert paths, f"{font_name}: cask has no font artifacts"
|
||||
|
||||
for rel_path in paths:
|
||||
full_path = FONT_FILES_DIR.parent / rel_path
|
||||
local_path = rel_path.replace("homebrew-fonts/", "", 1)
|
||||
full_path = FONT_FILES_DIR.parent / local_path
|
||||
assert full_path.is_file(), f"{font_name}: missing font file: {rel_path}"
|
||||
assert full_path.suffix.lower() in (".ttf", ".otf", ".ttc"), (
|
||||
f"{font_name}: unexpected font type: {full_path.suffix}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue