- 编译redis 5.0.7
wget http://download.redis.io/releases/redis-5.0.7.tar.gz tar -zxvf redis-5.0.7.tar.gz cd redis-5.0.7 make PREFIX=/opt/app/redis install cp redis.conf /opt/app/redis/
- 编译RedisDesktopManager-2019(需要安装xcode和Qt5.9.x)
brew install openssl cmake python3
git clone --recursive https://github.com/uglide/RedisDesktopManager.git -b 2019 rdm && cd ./rdm
cd src && cp ./resources/Info.plist.sample ./resources/Info.plist
pip3 install -t ../bin/osx/release -r py/requirements.txt
安装Qt时候需要选择Qt Charts模块。
之后通过QtCreator打开src/rdm.pro注释掉如图所示行。
编译之后的文件是rdm/bin/osx/debug/Redis Desktop Manager.app。
通过macdeployqt打包。
/opt/app/Qt5.9.9/5.9.9/clang_64/bin/macdeployqt '/Users/catcher92/Downloads/rdm/bin/osx/debug/Redis Desktop Manager.app' -always-overwrite -qmldir=/Users/catcher92/Downloads/rdm/src/qml -dmg