From 37082fe0854d5d153dbb5bb89877e2fa982892da Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Fri, 2 Feb 2024 18:55:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BB=A5=E6=94=AF=E6=8C=81pi?= =?UTF-8?q?p=E5=8F=AF=E4=BB=A5=E5=9C=A8deepin23=20beta3=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E6=89=80=E7=BC=BA=E5=A4=B1=E7=9A=84=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deepin-wine-easy-packager.py | 1 + mainwindow.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/deepin-wine-easy-packager.py b/deepin-wine-easy-packager.py index 7436e2a..9f2efa7 100755 --- a/deepin-wine-easy-packager.py +++ b/deepin-wine-easy-packager.py @@ -10,6 +10,7 @@ try: import xpinyin except: os.system("python3 -m pip install --upgrade xpinyin --trusted-host https://repo.huaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple") + os.system("python3 -m pip install --upgrade xpinyin --trusted-host https://repo.huaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple --break-system-packages") import xpinyin import traceback import subprocess diff --git a/mainwindow.py b/mainwindow.py index 132a586..5f5ebba 100755 --- a/mainwindow.py +++ b/mainwindow.py @@ -31,6 +31,7 @@ try: import PyQt5.QtGui as QtGui except: os.system("python3 -m pip install --upgrade pyqt5 --trusted-host https://repo.huaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple") + os.system("python3 -m pip install --upgrade pyqt5 --trusted-host https://repo.huaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple --break-system-packages") import PyQt5.QtGui as QtGui import PyQt5.QtCore as QtCore import PyQt5.QtWidgets as QtWidgets @@ -39,6 +40,7 @@ try: bad = False except: threading.Thread(target=os.system, args=["python3 -m pip install --upgrade PyQtWebEngine --trusted-host https://repo.huaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple"]).start() + threading.Thread(target=os.system, args=["python3 -m pip install --upgrade PyQtWebEngine --trusted-host https://repo.huaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple --break-system-packages"]).start() bad = True from trans import * from Model import * @@ -1336,7 +1338,7 @@ python3 "{programPath}/updatekiller.py" echo 下载安装包 wget -O /tmp/spark-deepin-wine-runner/update/spark-deepin-wine-runner.rpm {UpdateWindow.data["Url-rpm"][0]} echo 安装安装包 -yum install /tmp/spark-deepin-wine-runner/update/spark-deepin-wine-runner.rpm -y +yum reinstall /tmp/spark-deepin-wine-runner/update/spark-deepin-wine-runner.rpm -y notify-send -i "{iconPath}" "更新完毕!" zenity --info --text=\"更新完毕!\" --ellipsize """)