Skip to content

Fix for Apple Sillicon: Added conditional Homebrew prefix path#7

Open
onderweg wants to merge 1 commit into
dquimper:masterfrom
onderweg:master
Open

Fix for Apple Sillicon: Added conditional Homebrew prefix path#7
onderweg wants to merge 1 commit into
dquimper:masterfrom
onderweg:master

Conversation

@onderweg

@onderweg onderweg commented Jun 4, 2021

Copy link
Copy Markdown

On Apple Sillicon, Homebrew is installed in /opt/homebrew instead of /usr/local.
To make Redis.prefPane work on Apple Sillicon, I added a conditional homebrew prefix.

I nice way of getting the prefix normally, is executing brew --prefix. But this does not work with NSTask, because you don't know the location of brew, and which brew does not work either with NSTask.

Therefore I settled on just checking the existence of the /opt/homebrew directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant