初步termux支持

This commit is contained in:
2024-07-20 22:24:39 +08:00
parent 3146467477
commit 60f838144d
19 changed files with 393 additions and 14 deletions

View File

@@ -2395,11 +2395,12 @@ def CheckWine():
except:
traceback.print_exc()
try:
for i in os.listdir(f"{get_home()}/.deepinwine/"):
for j in wine7zUse:
if os.path.exists(f"{get_home()}/.deepinwine/{i}/bin/{j}"):
wine[f"{get_home()}/.deepinwine/{i}/bin/{j}"] = f"{get_home()}/.deepinwine/{i}/bin/{j}"
canUseWine.append(f"{get_home()}/.deepinwine/{i}/bin/{j}")
if os.path.exists(f"{get_home()}/.deepinwine/"):
for i in os.listdir(f"{get_home()}/.deepinwine/"):
for j in wine7zUse:
if os.path.exists(f"{get_home()}/.deepinwine/{i}/bin/{j}"):
wine[f"{get_home()}/.deepinwine/{i}/bin/{j}"] = f"{get_home()}/.deepinwine/{i}/bin/{j}"
canUseWine.append(f"{get_home()}/.deepinwine/{i}/bin/{j}")
except:
traceback.print_exc()