This is currently failing on all the intel CI tests, but before dedicating more time to fixing this, I wanted to hear whether this approach is the right one or whether I should be doing something entirely different with this PR.
This is my first time working with homebrew casks, so if people want to tell me that what I’ve done is completely wrong I would be very grateful to hear it!
I don’t have a strong reason for it other than I install most things via homebrew where possible so I’m sort of in the habit of it.
Is there some objection to using homebrew that I should be aware of? I’m aware that next year darktable won’t be available through official homebrew tap which is sad but for now I’m happy with it.
Sorry I realise my post is vague, I didn’t mean to imply that I wanted 5.4.0 for intel and was not sure how to go about getting it on homebrew.
I wanted to know if there was some way to gracefully handle the fact that the latest officially supported versions of darktable for x86_64 and arm64 now no longer match.
x86_64 support isn’t primarily dropped due to technical reasons (GitHub dropped the Intel runner formerly used for building the official releases, but there seems to be a new one for macos15). Main reason is a policy to support just platforms and macOS versions that are also supported by apple.
So in general darktable can be built for each macOS version which is covered by an sdk shipped with Xcode 15.
And to clarify here as well: it no longer supports macOS 13 as it is eol’d by Apple, relegated to Tier 3 by Homebrew, and there is no more GitHub runner for dt’s CI. Unfortunately GitHub didn’t offer macOS 14 Intel runners so that config can’t be officially supported either. However, macOS 15 Intel could. @zisoft
darktable supports all macOS versions which are still supported by Apple. Apple has now dropped support for macOS 13 as well as for Intel based Macs. That means, darktable will officially be supported for macOS 14 and above on arm64 architecture.
However, that does not mean that darktable will not run on Intel Macs. You can always compile darktable yourself on your Mac. You even don’t have to have Xcode installed, the Xcode command line tools are sufficient and if you have Homebrew installed, you already have the Xcode command line tools installed. Just follow the instructions in packaging/macosx/BUILD_hb.txt
There is now an Intel based GitHub runner image available for macOS 15 which would allow to setup nightly builds and release builds for Intel Macs, but this is only temporary until August 2027
Please also be aware that installing darktable through homebrew is deprecated anyway (see darktable — Homebrew Formulae)
With the so called security measure Apple has put in place, homebrew cannot install darktable. This can only be fixed if darktable get’s signed with an Apple developer account. (I believe there was a thread about that here on pixls, that someone was volunteering to help out with that)
My understanding here is that darktable will be removed by homebrew from their tap (I hesitate to use the word “official” given the ambiguity that arises )
It would still be possible to install via homebrew if one of the following happens
Someone gets it signed with an Apple dev account (as @martinus says)
Someone sets up a seperate tap for it that individuals can add to their own homebrew
If it can get signed that would be preferable but if not then maybe setting up a separate tap would be an option. I’d be happy to look into the latter at a later date (probably when darktable gets removed as that would serve as a timely reminder)
For now the homebrew maintainers seem to be happy with the approach that I took to seperate versions out between arm64 and x86_64, this has been merged.
However, as many people have kindly corrected me, it is still perfectly possible to run 5.4.0 on intel, so someone else may wish to provide a further update to the cask that allows for this.
It isn’t really true that “darktable supports all macOS versions which are still supported by Apple” and is is certainly not true that Apple has now dropped support for Intel based Macs. macOS 14, and above are still supported by Apple on Intel hardware.