更新谢明列表

This commit is contained in:
2023-01-06 22:24:18 +08:00
parent 27778259c2
commit 6e24dc3dad
3 changed files with 7 additions and 4 deletions

View File

@@ -446,10 +446,12 @@ class Command():
return self.Bat()
def InstallApk(self):
if os.system("which uengine > /dev/null"):
print("未安装 UEngine无法使用该命令")
return 1
apk = uengineapi.APK(self.command[1])
result = apk.install()
homePath = os.getenv("HOME")
if not os.path.exists(f"{homePath}/.local/share/applications/uengine"):
os.makedirs(f"{homePath}/.local/share/applications/uengine")
if not os.path.exists(f"{homePath}/.local/share/icons/hicolor/apps"):