Commit graph

52 commits

Author SHA1 Message Date
Matt Troutman
7948c86aa0
Remove AppleDouble resource fork files from font_files
Files starting with _ that are AppleDouble metadata (not real fonts)
were being included in casks, causing Font Book issues. Deleted 57
such files from font_files/ and added detection to the cleanup script
to prevent them in the future.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 21:43:35 -06:00
Matt Troutman
c85bbccd26
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>
2026-03-07 21:40:58 -06:00
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
Matt Troutman
df75b6e955
Remove deprecated font folder cleanup scripts and add new FontFolderCleaner implementation for organizing font files. 2025-05-19 11:57:10 -05:00
Matt Troutman
339cd33dd6
script maintenance 2024-10-03 00:38:34 -05:00
Matt Troutman
d6aa9cf4c8
no message 2024-10-02 23:12:53 -05:00
Matt Troutman
75e0a060ea
no message 2024-10-02 23:11:32 -05:00
Matt Troutman
358e94cde7
updated structure a bit. 2024-10-02 16:37:20 -05:00
Matt Troutman
46156f7bdd
refactoring a bit 2024-10-02 16:27:49 -05:00
Matt Troutman
1f18110229
no message 2024-10-02 16:08:00 -05:00
Matt Troutman
747b93412d
no message 2024-10-02 16:04:28 -05:00
Matt Troutman
5bebd760a9
no message 2024-10-02 15:48:25 -05:00
Matt Troutman
98fb1aae67
no message 2024-10-02 15:43:43 -05:00
Matt Troutman
a829efc23a
no message 2024-10-02 15:15:07 -05:00
Matt Troutman
1c91c9d74b
no message 2024-10-02 15:08:17 -05:00
Matt Troutman
0e844b94e7
no message 2024-10-02 15:05:28 -05:00
Matt Troutman
199951e3e2
no message 2024-10-02 15:04:03 -05:00
Matt Troutman
b7777b024a
no message 2024-10-02 15:03:29 -05:00
Matt Troutman
43133c6347
Renamed for clarity 2024-10-02 14:53:46 -05:00
Matt Troutman
1427542ecb
Added new script as the other was being a turd 💩 2024-10-02 14:36:29 -05:00
Matt Troutman
5626a60c84
lowercase file names 2024-10-02 14:17:56 -05:00
Matt Troutman
407407e23d
added .env to the gitignore file. Why wasn't this already there? 🤷🏼‍♂️ 2024-10-02 14:15:33 -05:00
Matt Troutman
a12912b3bf
additional cleanup 2024-10-02 13:59:19 -05:00
Matt Troutman
689ed19245
cleanup after itself. 2024-10-02 13:52:17 -05:00
Matt Troutman
522f6154d0
🤞🏼Maybe closer? 2024-10-02 13:45:04 -05:00
Matt Troutman
be9f7e8524
added new terms to cleanup script 2024-10-02 13:35:39 -05:00
Matt Troutman
b2beb5765b
Adding function to remove .setup_complete files. 2024-10-02 13:33:08 -05:00
Matt Troutman
bccb822eca
Remove Extra script 2024-10-02 13:03:28 -05:00
Matt Troutman
de1227ef75
git ignore & folder cleanup script 2024-09-27 09:17:37 -05:00
Matt Troutman
9f5dca1277
Updated font files locations functions to match 2024-09-27 09:04:10 -05:00
Matt Troutman
e223bd73cc
no message 2024-09-16 21:18:57 -05:00
Matt Troutman
8639d61c86
Merge branch 'main' of https://git.trtmn.io/fonts/fonts
* 'main' of https://git.trtmn.io/fonts/fonts:
  Added cleanup items

# Conflicts:
#	.fontfoldercleanup/cleanup.py
2024-09-16 21:13:55 -05:00
Matt Troutman
02c5c42547
no message 2024-09-16 21:01:31 -05:00
Matt Troutman
821dec8057
no message 2024-09-16 20:52:06 -05:00
Matt Troutman
cba11a1ad0
Added cleanup items 2024-09-16 20:50:10 -05:00