第一步:安裝brew(官網:https://brew.sh)
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
第二步:安裝x-code?
xcode-select --install
第三步:安裝依賴包
brew install automake berkeley-db4 libtool boost --c++11 miniupnpc openssl pkg-config protobuf python3 qt libevent
如果需要打包為dmg文件,還需要安裝brew install librsvg
第四步:下載bitcoin-0.15源碼?
訪問 https://github.com/bitcoin/bitcoin/tree/0.15 下載bitcoin-0.15.zip, 通過命令unzip bitcoin-0.15.zip將源碼解壓到文件夾bitcoin-0.15中
第五步:編譯源碼?
cd bitcoin-0.15
./autogen.sh
./configure
make
接下來可以通過命令make deploy 生成dmg文件, 該過程中若遇到如下問題,則先在Finder->Device中,將所有Bitcoin的掛載彈出后再運行。