2019-11-29更新
2019.5编译出来的程序名,由原来的rdm.app改为了Redis Desktop Manager.app,会导致最后两步拷贝QT框架错误。
将脚本macdeployqt开头的一行改为macdeployqt Redis Desktop Manager.app -qmldir=../../../src/qml
将脚本App file is开头的一行改为echo 'App file is:'$SHELL_FOLDER/rdm/bin/osx/release/Redis Desktop Manager.app.app即可编译2019.5
以下是2019.5版本编译脚本
#!/bin/bash
SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
echo '=======================Clone RDM repository======================='
git clone --recursive https://github.com/uglide/RedisDesktopManager.git rdm
echo "=======================Switch to latest tag: ${TAG}===================="
cd $SHELL_FOLDER/rdm
TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
#TAG='2019.4'
echo 'switch to latest tag: '$TAG
cd $SHELL_FOLDER/rdm
git checkout -b $TAG $TAG
echo '=======================Modify RDM version======================='
cd $SHELL_FOLDER/rdm/src/resources
echo 'copy Info.plist'
cp Info.plist.sample Info.plist
echo 'modify Info.plist'
sed -i "s/0.0.0/$TAG/g" Info.plist
echo '=======================Install Python requirements======================='
mkdir -p $SHELL_FOLDER/rdm/bin/osx/release
cd $SHELL_FOLDER/rdm/bin/osx/release
touch setup.cfg
/bin/cat <<EOM >setup.cfg
[install]
prefix=
EOM
pip3 install -t ./ -r ../../../src/py/requirements.txt --upgrade
echo "=======================Build RDM ${TAG}======================="
cd $SHELL_FOLDER/rdm/src
qmake CONFIG-=debug CONFIG+=sdk_no_version_check
make -s -j 8
echo "=======================Copy QT Framework(optional)======================="
cd $SHELL_FOLDER/rdm/bin/osx/release
macdeployqt Redis\ Desktop\ Manager.app -qmldir=../../../src/qml
echo "=======================SUCCESS======================="
echo 'App file is:'$SHELL_FOLDER/rdm/bin/osx/release/Redis\ Desktop\ Manager.app.app
转载自:https://garyqiang.com/post/how-to-build-redis-desktop-manager-on-mac
https://github.com/onewe/RedisDesktopManager-Mac/releases
https://www.elfgirl.top/system/mac/932.html
发表评论 取消回复