效果图

0x00 安装系统

微软商店下载deepin WSL 安装过程这里不赘述

0x01 添加源

deepin v23对应Debian 11 所以添加bullseye的源

# 需要使用root用户执行
echo -e 'deb https://mirrors4.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free\ndeb https://mirrors4.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free\ndeb https://mirrors4.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free\ndeb https://mirrors4.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free\n' >> /etc/apt/sources.list.d/bullseye.list

0x02 处理缺失的密钥

添加后执行更新命令sudo apt update会提示没有密钥

# 其中16位的密钥是根据你自己的报错信息修改
# 加入了代理是因为这算是个"不存在的网站" 如果你对当前的网络环境有信心 可以去掉
sudo apt-key adv --keyserver-options http-proxy=http://192.168.1.20:8889/ --keyserver keyserver.ubuntu.com --recv-keys 605C66F00D6C9793
sudo apt-key adv --keyserver-options http-proxy=http://192.168.1.20:8889/ --keyserver keyserver.ubuntu.com --recv-keys 6ED0E7B82643E131
sudo apt-key adv --keyserver-options http-proxy=http://192.168.1.20:8889/ --keyserver keyserver.ubuntu.com --recv-keys 54404762BBB6E853
sudo apt update

0x03 安装全部依赖项

# 如果程序更新后依赖改变 以 ./debian/control为准
sudo apt install \
debhelper \
cmake \
qt5-qmake \
qtbase5-dev \
qttools5-dev \
qttools5-dev-tools \
lxqt-build-tools \
libssl-dev \
llvm \
llvm-dev \
libclang-dev \
libutf8proc-dev \
libmicrohttpd-dev \
libjsoncpp-dev \
libargtable2-dev \
libhiredis-dev \
catch \
libzstd-dev \
libjson-c-dev \
libelf-dev \
libcapstone-dev \
libunwind-dev \
libelfin-dev \
libdbus-1-dev \
libxi-dev \
qtscript5-dev \
libqt5scripttools5 \
clang \
doxygen \
qtbase5-dev \
qtdeclarative5-dev \
qtscript5-dev \
qttools5-dev \
libqt5svg5-dev \
libqt5opengl5-dev \
libqt5sql5-mysql \
libqt5sql5-sqlite \
libqt5quick5-dev \
libqt5websockets5-dev \
qtcreator

0x04 确保已经安装所有依赖库

git clone https://gitee.com/deepin-community/deepin-unioncode.git
cd deepin-unioncode
sudo apt build-dep ./

0x05 构建

# 如果你对自己的电脑有信心 也可以使用全部线程构建
cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
cmake --build build

0x06 安装

sudo cmake --build build --target install

0x07 运行

deepin-unioncode