diff --git a/InstallQemuUser.sh b/InstallQemuUser.sh index 271aced..dad002f 100755 --- a/InstallQemuUser.sh +++ b/InstallQemuUser.sh @@ -6,6 +6,13 @@ if [[ $? == 0 ]]; then read exit 1 fi +# 判断是不是 Arch Linux +if [[ -f /etc/arch-release ]]; then + sudo pacman -Syu + sudo pacman -S qemu-user qemu-user-static + echo 安装完成,按回车键后退出 + read +fi sudo apt update sudo apt install binfmt-support qemu-user qemu-user-static -y echo 安装完成,按回车键后退出 diff --git a/deb/DEBIAN/control b/deb/DEBIAN/control index a4c220b..6241f7b 100755 --- a/deb/DEBIAN/control +++ b/deb/DEBIAN/control @@ -8,7 +8,7 @@ Certainty: possible Check: binaries Type: binary, udeb Priority: optional -Depends: python3, python3-pil, libc6, python3-pil.imagetk, python3-pyquery, aria2, curl, unrar | unrar-free , unzip, python3-requests, python3-pyqt5, python3-psutil, deepin-terminal | mate-terminal | gnome-terminal | xfce4-terminal, python3-dbus, python3-pip, p7zip-full, sudo, python3-pyperclip, bubblewrap, zenity, tree, qemu-system, dpkg +Depends: python3, python3-pil, libc6, python3-pil.imagetk, python3-pyquery, aria2, curl, unrar | unrar-free , unzip, python3-requests, python3-pyqt5, python3-psutil, deepin-terminal | mate-terminal | gnome-terminal | xfce4-terminal, python3-dbus, python3-pip, p7zip-full, sudo, python3-pyperclip, bubblewrap, zenity, tree, qemu-system | qemu-full, dpkg Recommends: winbind, wimtools, python3-pyqt5.qtwebengine, binfmt-support, libc6:i386, libc6:armhf, libwine Section: utils Conflicts: spark.deepin-venturi-setter, spark-deepin-wine5-application-packer, spark-deepin-wine-runner-52 diff --git a/mainwindow.py b/mainwindow.py index bd12c42..ffe9325 100755 --- a/mainwindow.py +++ b/mainwindow.py @@ -3459,8 +3459,7 @@ for i in [ # 有些功能是 Arch Linux 不适用的,需要屏蔽 if not os.path.exists("/etc/arch-release"): for i in [installLat, installWineHQ, installWineHQOrg, - installBox86CN, installBox86, installBox86Own, addWineDebMirrorForDeepin20, - installQemuMenu]: + installBox86CN, installBox86, installBox86Own, addWineDebMirrorForDeepin20]: i.setDisabled(True) for i in actionList: i.setDisabled(True)