Previously, I used to install Emacs on the Mac through a build script, but I recently switched to the Emacs Plus version, installed through homebrew.
First, you need to “tap” it and install dependencies before you can use it:
brew tap d12frosted/emacs-plus
# Install dependencies
brew install jq
And then you can install it. I pin it to a version and use minimal flags:
brew install emacs-plus@30 --with-memeplex-slim-icon --with-native-comp
And there you go, an Emacs version specifically tuned for the Mac.