Coder Social home page Coder Social logo

Comments (5)

colindean avatar colindean commented on August 16, 2024 1

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.

MikeMcQuaid avatar MikeMcQuaid commented on August 16, 2024 1

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.

Yes, this is the best bet, I'd rely on this.

from homebrew-bundle.

colindean avatar colindean commented on August 16, 2024

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.

nhooey avatar nhooey commented on August 16, 2024

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.

jacobbednarz avatar jacobbednarz commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.