Commit graph

16 commits

Author SHA1 Message Date
Matt Troutman
76743cdc4d
Convert from Homebrew Formulae to Casks for font installation
Formulae can't install to ~/Library/Fonts/ due to Homebrew sandboxing.
Casks have a built-in `font` artifact that handles this automatically.

- Replace Formula/ with Casks/ directory
- Rewrite generator to produce cask files instead of formulae
- Add .ttc (TrueType Collection) support
- Update all tests for cask format
- Update CLI and documentation
- Fonts with no installable files (TTF/OTF/TTC) are skipped

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 21:38:59 -06:00
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
02c8c16f92
Update Homebrew formula URLs to use the new API endpoint for font archives, ensuring consistent access across font classes. 2025-05-19 12:15:39 -05:00
Matt Troutman
8d5f0f3f90
Update Homebrew formula generator to use new archive URL and adjust file paths for font installation. Add tap configuration for Genet Godzilla fonts. 2025-05-19 12:13:23 -05:00
Matt Troutman
bc8845fc96
Refactor Homebrew formula generator to correctly format class names and file paths for font installation. Update glob patterns to remove unnecessary font_name variable and ensure proper directory structure for font files. 2025-05-19 12:10:53 -05:00
Matt Troutman
18a1498554
Update Homebrew formula homepage URL to point to the new server 2025-05-19 12:05:27 -05:00
Matt Troutman
95451bb68b
Add Homebrew formula generator script for font installation 2025-05-19 12:03:22 -05:00