The xray-core has entered into homebrew/core.
Recommend using the official installation method to access more stable service. However, you can also get the bins update with this repo until the XTLS/xray-core stops providing geoip.dat in the zips.
brew up
brew install xrayThe homebrew tap for xray-core.
INTEL and M1 Binaries from Xray-core Latest Release (no pre-build)
step 1: Add tap
brew tap N4FA/xraystep 2: Install xray-core:
brew install xray-corestep 1: update tap
brew updatestep 2: update xray-core
brew upgrade xray-corestep 1: uninstall core
brew uninstall xray-corestep 2: untap formula
brew untap N4FA/xrayonce you installed, you can run command via xray to run xray-core.
You can get example config files at https://github.com/XTLS/Xray-examples
default config file location is:/usr/local/etc/xray/config.json
step 1: save and edit the example config:
vim /usr/local/etc/xray/config.jsonstep 2: run xray-core without starting at login.
brew services run xray-coreor run xray-core and register it to launch at login via:
brew services start xray-coreSpecial Thanks to v2ray/homebrew-v2ray