feat(update): add startup health rollback fuse

This commit is contained in:
chengma
2026-07-13 12:23:46 +08:00
parent 04124060fc
commit f6db4f0d62
16 changed files with 481 additions and 14 deletions
+6
View File
@@ -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)