-
-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to consider processor architecture when installing? #1229
Comments
Many if not most if not nearly all formulae and casks handle this. Homebrew Bundle just tells Homebrew what formulae and casks and whatnot to install. Those will then install the correct version for the architecture. If you find this is not the case, double-check the formula/cask and then upstream to be sure that the software supports your architecture. |
In this case each app only supports a single architecture, and naively trying to install one on the wrong architecture will make Homebrew fail. I'm not sure what will happen in But you could just evaluate the output of |
as @colindean mentioned, this isn't something |
I see what you're trying to do now, sorry about that. You can use I use this several of my own Brewfiles: if OS.mac? && Hardware::CPU.arm?
# OS-level dependency for pyodbc
brew "unixodbc"
end N.b. that the AlDente FAQ lists support for Intel Macs under the Is my MacBook Model supported? section and the DMG for v1.22 ships a universal binary. |
Yes, this is the best bet, I'd rely on this. |
Sometimes it's necessary to know which app to install based on the system architecture:
Example from my own Ansible YAML: Which battery app to install:
Is there a way to do this with
homebrew-bundle
?The text was updated successfully, but these errors were encountered: