DomT4 / homebrew-autoupdate

:tropical_drink: An easy, convenient way to automatically update Homebrew.
BSD 2-Clause "Simplified" License
987 stars 54 forks source link

Create a unique launch agent for each architecture #62

Closed lkrms closed 3 years ago

lkrms commented 3 years ago

On an Apple Silicon system with 2 Homebrew installations (at /opt/homebrew and /usr/local for arm64 and x86_64 respectively), arch --x86_64 /usr/local/bin/brew autoupdate subcommand conflicts with /opt/homebrew/bin/brew autoupdate subcommand, which makes it impossible to enable autoupdate for both installations simultaneously.

The workaround I've used here may not be suitable for wider adoption, but hopefully a few revisions will get it there if not.

TL;DR:

There are probably things I've missed, but it seems to be working as expected here (although I don't have --upgrade enabled).