Homebrew / homebrew-bundle

📦 Bundler for non-Ruby dependencies from Homebrew, Homebrew Cask and the Mac App Store.
MIT License
5.33k stars 286 forks source link

how to install only on specified macOS version or arch of OS #1360

Closed pOH7 closed 5 months ago

pOH7 commented 5 months ago

like >= sonoma, and is arm64

the example Brewfile in README does not show such function, does homebrew-bundle support it?

MikeMcQuaid commented 5 months ago

Just use Ruby and Homebrew functions for this e.g. if Hardware::CPU.arm? or MacOS.version >= :sonoma