llamafile
llamafile copied to clipboard
Homebrew formula
Hi, Will you consider publishing this to Homebrew?
👋 I took a stab at adding a source install and a binary install to Homebrew.
The sticking points I've run into are:
- for the source install, the homebrew maintainers do not want to download cosmopolitan separately
- for the binary install, Darwin/OSX on arm64 won't run binaries that aren't signed and notarized by Apple
Some options:
- sign and notarize the llamafile release binaries for the binary install
- vendor cosmopolitan in llamafile and build both from source (ok but not preferred for Homebrew)
- or add a new source install Homebrew formula for cosmopolitan and depend on it for the llamafile formula. Preferred to vendoring.
- update llamafile to support using other build chains for source installs. This breaks cross-platform support which AFAIK is a key goal of llamafile.
- do nothing. Consider llamafile a file format primarily and distribution of the release binaries not a priority at this time.
- recommend users disable System Integrity Protection for the existing binary install. This is inadvisable, but might be acceptable for expert/beta users with appropriate warnings.
Happy to add context or lay out some options for the signing route if that's of interest. Thanks!
for the binary install, Darwin/OSX on arm64 won't run binaries that aren't signed and notarized by Apple
I think that could be resolved with brew install --no-quarantine.
Also, even if llamafile is not accepted into the main Homebrew repos, a custom tap can be created. Formulae/casks there can just download binaries.