here’s what I’m trying to do:
I want to build a custom Mac application that contains dependencies installed via homebrew.
Here’s what I’m thinking on how to make this work:
- clone Homebrew into the future target directory - for example /Applications/SomeApp
- Install the homebrew dependencies inside of this custom homebrew path
- Package the /Applications/SomeApp folder that now contains all correctly-prefixed built dependencies
While this works, my problem is that I end up having way too many dependencies.
The “php” formula has a build-only dependency of “httpd”.
“httpd” has other dependencies, that might not be required for “php” or “nginx”
So my question is: What is the best way to install the dependencies that I need and only keep the ones that I actually need during runtime?
Thanks for any help in advance!