安装器忽略非X86架构

This commit is contained in:
gfdgd_xi 2023-02-11 18:45:53 +08:00
parent 59de052531
commit e0aed7a1b5
1 changed files with 1 additions and 1 deletions

View File

@ -1820,7 +1820,7 @@ def showhelp():
###########################
if not os.path.exists("/usr/bin/uengine"):
# Deepin/UOS 用户
if "deepin" in SystemVersion.lower() or "uos" in SystemVersion.lower():
if "deepin" in SystemVersion.lower() or "uos" in SystemVersion.lower() or subprocess.getoutput("arch").replace("\n", "").replace(" ", "") != "x86_64":
if QtWidgets.QMessageBox.question(None, "提示", "您的电脑没有安装 UEngine是否安装 UEngine 以便更好的使用\n安装完后重新启动该程序即可") == QtWidgets.QMessageBox.Yes:
OpenTerminal(f"pkexec apt install uengine -y")
sys.exit(0)