diff --git a/deb/DEBIAN/control b/deb/DEBIAN/control index 06401b5..509c3af 100755 --- a/deb/DEBIAN/control +++ b/deb/DEBIAN/control @@ -4,8 +4,8 @@ Maintainer: gfdgd xi <3025613752@qq.com>, 为什么您不喜欢熊出没和阿 Homepage: https://gitee.com/gfdgd-xi/deep-wine-runner, https://github.com/gfdgd-xi/deep-wine-runner, https://gitlink.org.cn/gfdgd_xi/deep-wine-runner Architecture: all Priority: optional -Depends: python3, python3-pil, python3-pil.imagetk, python3-pyquery, aria2, curl, unrar, unzip, python3-requests, fakeroot, bash, python3-pyqt5, python3-psutil, wimtools, deepin-terminal | mate-terminal | gnome-terminal | xfce4-terminal -Recommends: winbind +Depends: python3, python3-pil, python3-pil.imagetk, python3-pyquery, aria2, curl, unrar, unzip, python3-requests, fakeroot, bash, python3-pyqt5, python3-psutil, deepin-terminal | mate-terminal | gnome-terminal | xfce4-terminal +Recommends: winbind, wimtools Section: utils Conflicts: spark.deepin-venturi-setter, spark-deepin-wine5-application-packer, spark-deepin-wine-runner-52 Replaces: spark.deepin-venturi-setter, spark-deepin-wine5-application-packer, spark-deepin-wine-runner-52 diff --git a/mainwindow.py b/mainwindow.py index 21b3a51..ee2b84b 100755 --- a/mainwindow.py +++ b/mainwindow.py @@ -1042,6 +1042,10 @@ class GetDllFromWindowsISO: findList = [] # 判断是新版的 Windows ISO(Windows Vista 及以上版本) if os.path.exists("/tmp/wine-runner-getdll/sources/install.wim"): + # 如果没有安装 wimtools 的话 + if os.system("which wimmount") != 0: + QtWidgets.QMessageBox.critical(GetDllFromWindowsISO.message, "错误", f"镜像内容读取/挂载失败,因为没有安装 wimtools 以至无法读取") + return # 是新版,挂载 wim # 需要让用户选择挂载内容 QtWidgets.QInputDialog.getMultiLineText(GetDllFromWindowsISO.message, "提示", "挂载文件需要用户记住并在下一个对话框输入 Index 以挂载正确的镜像,按下下方任意按钮即可继续", subprocess.getoutput("wiminfo '/tmp/wine-runner-getdll/sources/install.wim'"))