mudler / LocalAI

:robot: The free, Open Source OpenAI alternative. Self-hosted, community-driven and local-first. Drop-in replacement for OpenAI running on consumer-grade hardware. No GPU required. Runs gguf, transformers, diffusers and many more models architectures. It allows to generate Text, Audio, Video, Images. Also with voice cloning capabilities.
https://localai.io
MIT License
21.6k stars 1.66k forks source link

Sign MacOS binaries #2390

Open mauromorales opened 1 month ago

mauromorales commented 1 month ago

Is your feature request related to a problem? Please describe.

When trying to run on MacOS, you need to give the binary permision via Gatekeeper which can get annoying see: https://github.com/mudler/LocalAI/pull/2389

Describe the solution you'd like

You can sign the binaries so all that the user needs to do is to accept in a pop up when running for the first time, which is a lot more user friendly. See https://developer.apple.com/developer-id/

Describe alternatives you've considered

Keep allowing in Gatekeepr

Additional context

dave-gray101 commented 1 month ago

Hey @mauromorales !

I agree that the gatekeeper stuff gets annoying. That's why a while ago I added the osx-signed make target.

This will let you self-sign a binary that OSX won't complain about.

I currently don't have an Apple Developer Program membership to generate public signatures, so until that changes, someone else on the team gets one, or someone corrects me that I'm wrong about needing it at all, I think self-signing will be the way to go!

mauromorales commented 1 month ago

@dave-gray101 makes sense, it's not a huge problem but more like a paper cut. I'm also checking if I can create a brew formula to avoid this altogether.

mauromorales commented 1 month ago

Opened a PR for the brew formula, might need some tuning because I'm not passing any special flags plus eventually, it might be nice to also add a service or such, but at least I can install and configure using env vars

https://github.com/Homebrew/homebrew-core/pull/172734

qdrddr commented 1 month ago

Having this app on mac via brew would be great. Makes life much easier