Comments (5)
I see what you're trying to do now, sorry about that.
You can use Hardware::CPU.arm?
and Hardware::CPU.intel?
but n.b. these are not explicitly part of the Brewfile DSL so they're not guaranteed to work perpetually— they probably will for the foreseeable future.
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.
from homebrew-bundle.
You can use
Hardware::CPU.arm?
andHardware::CPU.intel?
but n.b. these are not explicitly part of the Brewfile DSL so they're not guaranteed to work perpetually— they probably will for the foreseeable future.
Yes, this is the best bet, I'd rely on this.
from homebrew-bundle.
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.
from homebrew-bundle.
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 homebrew-bundle
's case.
But you could just evaluate the output of uname -m
to make sure it's arm64
or x86_64
, it seems.
from homebrew-bundle.
as @colindean mentioned, this isn't something homebrew-bundle
handles but offloads to the formula/cask. if you're seeing issues, the best place to investigate is the formula.
from homebrew-bundle.
Related Issues (20)
- Add SetApp support HOT 2
- VSCode extensions that have capital letters seem to not be registered, and get uninstalled HOT 2
- Feature request: Auto-start a cask after installation HOT 11
- Filtering installed software by a set of groups HOT 2
- Specify Package Installed from Source HOT 2
- Maintaining Ruby 2.6 compatibility HOT 4
- Qs on merging Brewfiles. HOT 2
- [Feature] Support groups HOT 1
- Error: cannot load such file -- abstract_command HOT 2
- Collection of potential new Installers/Checkers/Dumpers HOT 12
- npm & pip installers HOT 16
- Vscode : Case sensitive issue is back HOT 6
- [Question] Can formula and cask have the same name? HOT 4
- brew bundle dump spawns many ruby processes HOT 12
- Unattended install of a bundle HOT 4
- how to install only on specified macOS version or arch of OS HOT 1
- brew bundle [install] --cleanup removes dependencies when reading from stdin HOT 4
- Confusion on what should be dumped HOT 1
- VSCode@Insiders Support for Extensions HOT 6
- Error: private method `system' called for module Homebrew HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-bundle.