From c5a66a7850e667eefcad5df4887997cc6f573201 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Tue, 22 Nov 2022 22:40:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0postinst?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deb/DEBIAN/postinst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/deb/DEBIAN/postinst b/deb/DEBIAN/postinst index 938fa23..f2c194c 100755 --- a/deb/DEBIAN/postinst +++ b/deb/DEBIAN/postinst @@ -11,6 +11,20 @@ echo 安装组件 python3 -m pip install --upgrade pynput --trusted-host https://repo.huaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple > /dev/null 2>&1 | true echo 执行完成 +echo 移除旧组件 +if [ -d /opt/apps/deepin-wine-runner/arm-package ]; then + rm -rf /opt/apps/deepin-wine-runner/arm-package +fi +if [ -d /opt/apps/deepin-wine-runner/dlls-arm ]; then + rm -rf /opt/apps/deepin-wine-runner/dlls-arm +fi +if [ -d /opt/apps/deepin-wine-runner/exa ]; then + rm -rf /opt/apps/deepin-wine-runner/exa +fi +if [ -d /opt/apps/deepin-wine-runner/dxvk ]; then + rm -rf /opt/apps/deepin-wine-runner/dxvk +fi +echo 移除完成 # 如果为非 X86 PC,可以删除掉一些无用组件(主要是用不了) if [ `arch` != "x86_64" ]; then echo 非X86架构,删除对非X86架构无用的组件