feat(update): add startup health rollback fuse
This commit is contained in:
@@ -136,6 +136,11 @@ class ForcedUpdateDialog(QDialog):
|
||||
layout.addLayout(buttons)
|
||||
|
||||
def _validate_available_update(self):
|
||||
if self.result.automatic_update_error:
|
||||
self.stage_label.setText(self.result.automatic_update_error)
|
||||
self.action_button.setText("等待修复版本")
|
||||
self.action_button.setEnabled(False)
|
||||
return
|
||||
try:
|
||||
update_installer.metadata_from_update_info(self.result)
|
||||
except update_installer.UpdateInstallError as exc:
|
||||
@@ -178,6 +183,7 @@ class ForcedUpdateDialog(QDialog):
|
||||
staged.staging_dir,
|
||||
staged.version,
|
||||
os.getpid(),
|
||||
staged.sha256,
|
||||
)
|
||||
updater_path = self.install_root / "cmshopee-updater.exe"
|
||||
self.updater_launcher(updater_path, plan_path)
|
||||
|
||||
Reference in New Issue
Block a user