Homebrew / homebrew-bundle

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

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

Closed pOH7 closed 6 months ago

pOH7 commented 6 months ago

like >= sonoma, and is arm64

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

MikeMcQuaid commented 6 months ago

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