From 1942299850fac185e4bd422227b14302c8c7779b Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Tue, 8 Aug 2023 20:53:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AE=80=E6=98=93=E6=89=93?= =?UTF-8?q?=E5=8C=85=E5=99=A8=E6=89=93=E5=8C=85=E7=AD=96=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deepin-wine-easy-packager.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/deepin-wine-easy-packager.py b/deepin-wine-easy-packager.py index a6f029a..91b8cbf 100755 --- a/deepin-wine-easy-packager.py +++ b/deepin-wine-easy-packager.py @@ -644,12 +644,13 @@ if __name__ == "__main__": "使用 Deepin Wine5 打包应用", "使用 Deepin Wine2 打包应用" ] - wineChooserIndex = 0 + wineChooserIndex = 2 wineList = ["spark-wine8", "spark-wine7-devel", "deepin-wine6-stable", "deepin-wine5-stable", "deepin-wine5", "deepin-wine"] - for i in range(len(wineList)): - if not os.system(f"which '{wineList[i]}'"): - wineChooserIndex = i - break + if os.system("which deepin-wine6-stable"): + for i in range(len(wineList)): + if not os.system(f"which '{wineList[i]}'"): + wineChooserIndex = i + break chooseWine = wineList[wineChooserIndex] wineChooserList[wineChooserIndex] = f"{wineChooserList[wineChooserIndex]}(推荐,如无特殊需求不建议更换)" wineChooser.addItems(wineChooserList)