Commit graph

13 commits

Author SHA1 Message Date
Matt Troutman
cb1918c30f
Use symlinks for font installation to ~/Library/Fonts/
Homebrew sandboxes post_install, so cp fails with EPERM.
Symlinks work around this and also ensure brew uninstall
can cleanly remove fonts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 21:32:43 -06:00
Matt Troutman
59d8175d75
Fix post_install: use system cp -f to handle existing fonts
Ruby's cp raises EPERM if the target file already exists.
Using system "cp", "-f" overwrites gracefully.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 21:31:49 -06:00
Matt Troutman
7cfc7f51d2
Add post_install to copy fonts to ~/Library/Fonts/
Fonts now appear in Font Book automatically after brew install.
The post_install hook copies TTF and OTF files to ~/Library/Fonts/.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 21:30:48 -06:00
Matt Troutman
4273745a9e
Fix formula glob paths: remove homebrew-fonts/ prefix
Homebrew sets CWD inside the extracted archive directory, so
Dir.glob paths should start at font_files/, not homebrew-fonts/font_files/.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 21:26:47 -06:00
Matt Troutman
a85f0e9b53
Fix archive path: homebrew-fonts-main → homebrew-fonts
Gitea archives unpack as homebrew-fonts/, not homebrew-fonts-main/.
Updated formula generator, tests, and docs to match.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 21:24:25 -06:00
Matt Troutman
387a4795d7
Remove sha256 from formulae — :no_check is cask-only
Homebrew formulae don't support sha256 :no_check (that's a cask feature).
For a self-hosted rolling-branch archive, omitting sha256 entirely lets
Homebrew download without checksum verification.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 21:22:44 -06:00
Matt Troutman
23da45ef37
Use sha256 :no_check for rolling main branch archive
The archive includes the formulae themselves, so the sha256 changes on
every push — making a fixed hash impossible. Use :no_check which is
standard for self-hosted taps serving from a rolling branch.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 21:19:39 -06:00
Matt Troutman
91d5ffad9d
Update Gitea URL from port 3002 to 8085 and add sha256 to formulae
All formulae were failing to download because the archive URL pointed to
the old Gitea port (3002). Updated to port 8085 and computed the correct
sha256 hash for the archive.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 21:18:58 -06:00
Matt Troutman
56b64d0b34
Update documentation and scripts for font addition process; introduce uv run add-font CLI command for streamlined font management. Enhance formula generation with improved class name formatting and validation steps. Remove outdated font formula files. 2026-02-09 22:04:01 -06:00
Matt Troutman
04d79dd2dd
Update font formulas to use a consistent URL for font archives across multiple classes, ensuring reliable access for installation. 2025-05-19 12:19:27 -05:00
Matt Troutman
c05fd4b879
Update font formulas to use the new API endpoint for font archives, ensuring consistent access across multiple font classes. 2025-05-19 12:15:59 -05:00
Matt Troutman
749dc7d418
Update font formulas to use specific directory paths for font files, ensuring proper installation structure across multiple font classes. 2025-05-19 12:14:09 -05:00
Matt Troutman
b01b74c595
Add new font formulas for various styles, ensuring proper directory structure and installation verification. 2025-05-19 12:11:02 -05:00