mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-06-04 06:09:50 +08:00
生态适配脚本打包器支持正确根据打包结果显示打包成功/失败 https://gitee.com/gfdgd-xi/deep-wine-runner/issues/I7D83Z
This commit is contained in:
parent
c6e722de60
commit
370bde5e63
@ -57,6 +57,7 @@ def DisbledOrEnabled(choose: bool):
|
|||||||
class PackageDebThread(QtCore.QThread):
|
class PackageDebThread(QtCore.QThread):
|
||||||
signal = QtCore.pyqtSignal(str)
|
signal = QtCore.pyqtSignal(str)
|
||||||
info = QtCore.pyqtSignal(str)
|
info = QtCore.pyqtSignal(str)
|
||||||
|
error = QtCore.pyqtSignal(str)
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
@ -104,12 +105,18 @@ export apprun_cmd="deepin-wine6-stable"
|
|||||||
text = ""
|
text = ""
|
||||||
self.signal.emit(text)
|
self.signal.emit(text)
|
||||||
print(text, end="")
|
print(text, end="")
|
||||||
self.info.emit("打包完成!")
|
if not res.returncode:
|
||||||
|
self.info.emit("打包完成!")
|
||||||
|
else:
|
||||||
|
self.error.emit("打包出现错误!")
|
||||||
DisbledOrEnabled(False)
|
DisbledOrEnabled(False)
|
||||||
|
|
||||||
class QT:
|
class QT:
|
||||||
run = None
|
run = None
|
||||||
|
|
||||||
|
def MessageBoxError(text):
|
||||||
|
QtWidgets.QMessageBox.critical(window, "错误", text)
|
||||||
|
|
||||||
def MessageBoxInformation(text):
|
def MessageBoxInformation(text):
|
||||||
QtWidgets.QMessageBox.information(window, "提示", text)
|
QtWidgets.QMessageBox.information(window, "提示", text)
|
||||||
|
|
||||||
@ -126,6 +133,7 @@ def PackageDeb():
|
|||||||
QT.run = PackageDebThread()
|
QT.run = PackageDebThread()
|
||||||
QT.run.signal.connect(RunCommand)
|
QT.run.signal.connect(RunCommand)
|
||||||
QT.run.info.connect(MessageBoxInformation)
|
QT.run.info.connect(MessageBoxInformation)
|
||||||
|
QT.run.error.connect(MessageBoxError)
|
||||||
QT.run.start()
|
QT.run.start()
|
||||||
|
|
||||||
def RunCommand(command):
|
def RunCommand(command):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user