1. 安装
1.1 使用brew自动安装
参考官方文档:https://github.com/zealdocs/zeal/wiki/Build-Instructions-for-macOS
PS:国内网使用brew官方原始源一般比较慢,可参考https://blog.csdn.net/weixin_35757704/article/details/125554715切换成国内的源
1.2 手动编译安装
# 先安装cmake, 有可跳过
brew install cmake
# 安装相应依赖包,并设置
brew install qt
brew install libarchive
export CMAKE_PREFIX_PATH=/opt/homebrew/opt/qt5/:/opt/homebrew/opt