Windows编译 RedisDesktopManager 2020.1

git clone --recursive https://github.com/uglide/RedisDesktopManager.git

Install python 3.7
Edit RedisDesktopManager\3rdparty\pyotherside.pri
win32* {
    QMAKE_LIBS += -LC:\Users\li\AppData\Local\Programs\Python\Python37\libs -lpython37
    INCLUDEPATH += C:\Users\li\AppData\Local\Programs\Python\Python37\include

cd 3rdparty/qredisclient/3rdparty/hiredis
git apply ../hiredis-win.patch
若无法自动patch,则需要手动修改

下载 nuget
https://dist.nuget.org/win-x86-commandline/latest/nuget.exe

使用国内的镜像源:
nuget sources Disable -Name "nuget.org"
nuget sources add -Name "huaweicloud" -Source "https://mirrors.huaweicloud.com/repository/nuget/v3/index.json"

cd 3rdparty
nuget install zlib-msvc14-x64 -Version 1.2.11.7795

Start QtCreator, Select MSVS_2019_x64, Build

cd RedisDesktopManager\bin\windows\release
windeployqt --release --qmldir D:\Qt\Qt5.14.2\5.14.2\msvc2017_64\qml rdm.exe

copy D:\Qt\Qt5.14.2\5.14.2\msvc2017_64\qml\QtCharts to RedisDesktopManager\bin\windows\release
copy D:\Qt\Qt5.14.2\5.14.2\msvc2017_64\qml\Qt\labs\qmlmodels to RedisDesktopManager\bin\windows\release\Qt\labs

Run rdm.exe