From 2157a4df0df38ad72ea6b138c6baef101b095388 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Wed, 12 Apr 2023 20:06:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85=E5=99=A8x86=E6=94=AF?= =?UTF-8?q?=E6=8C=81spark-wine8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deepin-wine-packager.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deepin-wine-packager.py b/deepin-wine-packager.py index f390f82..f960f08 100755 --- a/deepin-wine-packager.py +++ b/deepin-wine-packager.py @@ -2033,12 +2033,12 @@ bottleNameLock = False ############### programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string # 如果要添加其他 wine,请在字典添加其名称和执行路径 -wine = {"deepin-wine": "deepin-wine", "deepin-wine5": "deepin-wine5", "wine": "wine", "wine64": "wine64", "deepin-wine5 stable": "deepin-wine5-stable", "deepin-wine6 stable": "deepin-wine6-stable", "spark-wine7-devel": "spark-wine7-devel", "ukylin-wine": "ukylin-wine"} -wineValue = {"deepin-wine": "deepin-wine", "deepin-wine5": "deepin-wine5", "wine": "wine", "wine64": "wine64", "deepin-wine5-stable": "deepin-wine5 stable", "deepin-wine6-stable": "deepin-wine6 stable", "spark-wine7-devel": "spark-wine7-devel", "ukylin-wine": "ukylin-wine"} +wine = {"deepin-wine": "deepin-wine", "deepin-wine5": "deepin-wine5", "wine": "wine", "wine64": "wine64", "deepin-wine5 stable": "deepin-wine5-stable", "deepin-wine6 stable": "deepin-wine6-stable", "spark-wine7-devel": "spark-wine7-devel", "ukylin-wine": "ukylin-wine", "spark-wine8": "spark-wine8"} +wineValue = {"deepin-wine": "deepin-wine", "deepin-wine5": "deepin-wine5", "wine": "wine", "wine64": "wine64", "deepin-wine5-stable": "deepin-wine5 stable", "deepin-wine6-stable": "deepin-wine6 stable", "spark-wine7-devel": "spark-wine7-devel", "ukylin-wine": "ukylin-wine", "spark-wine8": "spark-wine8"} # 读取 wine 本地列表 -for i in ["/opt/wine-staging", "/opt/wine-dev", "/opt/wine-stable", "/opt/spark-wine7-devel"]: - if os.path.exists(i): - wine[i] = i +for i in os.listdir("/opt"): + if os.path.exists(f"/opt/{i}/bin/wine"): + wine[f"/opt/{i}/bin/wine"] = f"/opt/{i}/bin/wine" try: for i in os.listdir(f"{get_home()}/.deepinwine"): if os.path.exists(f"{get_home()}/.deepinwine/{i}/bin/wine"):