microsoft / winget-pkgs

The Microsoft community Windows Package Manager manifest repository
MIT License
8.52k stars 4.42k forks source link

Package Request: Nerdfonts #17547

Open cyntheticfox opened 3 years ago

cyntheticfox commented 3 years ago

Nerd Fonts

Manifest:

PackageIdentifier:   NerdFonts.NerdFonts # publisher.package format (example: "Microsoft.WindowsTerminal")
PackageVersion:   2.1.0   # version number format x.y.z.a (example: "1.6.10571.0")
PackageLocale:   en-US    # meta-data locale (example: "en-US")
Publisher:     N/A?      # publisher name (example: "Microsoft Corporation")
PackageName:   Nerd Fonts      # package name (example: "Windows Terminal")
License:      MIT       # package license (example: "MIT")
ShortDescription:  Fancy Terminal Fonts   # package description (example: "The new Windows Terminal")
Installers: 
 - Architecture:  N/A   # installer architecture (example: "x64")
   InstallerType:  None  # installer type (example: "msix")
   InstallerUrl:   https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/CascadiaCode.zip  # installer URL (should be https://)
   InstallerSha256: 92B50960305C580FC90BB3BD5456E26EDC9B321907DFA2578066A9B38E2A94E0 # SHA256 hash calculated from installer
ManifestType: singleton
ManifestVersion: 1.0.0

This may be complicated. Nerd Fonts are great for their support of ligatures and many different glyphs, and are widely used for making your terminal fancier. The problem is that instead of providing a single downloader, they break it up into separate zip files for each font, with sets of Windows compatible ttfs and otfs and non-compatible ones within the zip files.

As such, while writing a font installer might not be hard, this brings up whether to provide this as one large installer as Chocolatey does, or provide individual fonts, or if winget should provide the ability to install fonts at all.

denelon commented 3 years ago

https://github.com/microsoft/winget-cli/issues/166 https://github.com/microsoft/winget-cli/issues/140

jpawlowski commented 2 years ago

I'd prefer packages to be similar to homebrew. There is a single package for each font which makes totally sense to me. It is not a shame to look what other did for the last couple of years (in fact, I believe all Windows package managers were just inspired by Homebrew and aptitude ...)