llamafile icon indicating copy to clipboard operation
llamafile copied to clipboard

Homebrew formula

Open fakerybakery opened this issue 2 years ago • 2 comments

Hi, Will you consider publishing this to Homebrew?

fakerybakery avatar Dec 01 '23 20:12 fakerybakery

👋 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:

  1. sign and notarize the llamafile release binaries for the binary install
  2. vendor cosmopolitan in llamafile and build both from source (ok but not preferred for Homebrew)
    1. or add a new source install Homebrew formula for cosmopolitan and depend on it for the llamafile formula. Preferred to vendoring.
  3. update llamafile to support using other build chains for source installs. This breaks cross-platform support which AFAIK is a key goal of llamafile.
  4. do nothing. Consider llamafile a file format primarily and distribution of the release binaries not a priority at this time.
  5. 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!

g-k avatar Feb 02 '24 14:02 g-k

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.

AlekSi avatar Apr 03 '24 05:04 AlekSi