mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-13 01:58:27 +08:00
高级打包器支持在选择可执行文件在 c:/User/xxx 时给出提示 https://gitee.com/gfdgd-xi/deep-wine-runner/issues/I8XRWP
This commit is contained in:
parent
99539c58f7
commit
e0717e4fc5
@ -269,16 +269,21 @@ def make_deb(build=False):
|
||||
disabled_or_NORMAL_all(True)
|
||||
return
|
||||
# 警告信息
|
||||
if os.path.exists(e7_text.text()):
|
||||
if QtWidgets.QMessageBox.warning(window, "警告", "输入的路径似乎是一个绝对路径\n不建议打包绝对路径,建议是 Wine 容器内路径\n是否继续打包?", QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No) == QtWidgets.QMessageBox.No:
|
||||
disabled_or_NORMAL_all(True)
|
||||
return
|
||||
if e7_text.text()[:2].lower() == "c:" and not os.path.exists("{}/drive_c/{}".format(
|
||||
e6_text.text(),
|
||||
e7_text.text()[3:].replace("\\", '/'))):
|
||||
if QtWidgets.QMessageBox.warning(window, "警告", "输入的路径似乎在 Wine 容器不存在(如果只是大小写错误导致的误判,请忽略)\n是否继续打包?", QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No) == QtWidgets.QMessageBox.No:
|
||||
disabled_or_NORMAL_all(True)
|
||||
return
|
||||
for i in iconUiList:
|
||||
if os.path.exists(i[0].text()):
|
||||
if QtWidgets.QMessageBox.warning(window, "警告", "输入的路径似乎是一个绝对路径\n不建议打包绝对路径,建议是 Wine 容器内路径\n是否继续打包?", QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No) == QtWidgets.QMessageBox.No:
|
||||
disabled_or_NORMAL_all(True)
|
||||
return
|
||||
if "c:/user" in i[0].text().replace(" ", "").replace("\\", "/").lower():
|
||||
if QtWidgets.QMessageBox.warning(window, "警告", "输入的路径似乎是在容器的用户目录内,打包后可能会出现找不到 exe 的情况,是否继续?", QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No) == QtWidgets.QMessageBox.No:
|
||||
disabled_or_NORMAL_all(True)
|
||||
return
|
||||
if i[0][:2].lower() == "c:" and not os.path.exists("{}/drive_c/{}".format(
|
||||
e6_text.text(),
|
||||
i[0][3:].replace("\\", '/'))):
|
||||
if QtWidgets.QMessageBox.warning(window, "警告", "输入的路径似乎在 Wine 容器不存在(如果只是大小写错误导致的误判,请忽略)\n是否继续打包?", QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No) == QtWidgets.QMessageBox.No:
|
||||
disabled_or_NORMAL_all(True)
|
||||
return
|
||||
#thread = threading.Thread(target=make_deb_threading)
|
||||
QT.thread = make_deb_threading(build)
|
||||
QT.thread.signal.connect(chang_textbox1_things)
|
||||
|
Loading…
Reference in New Issue
Block a user