feat(update): support verified public HTTP downloads

This commit is contained in:
chengma
2026-07-13 16:19:03 +08:00
parent 9a458ee195
commit 74b98cd123
8 changed files with 234 additions and 37 deletions
+7
View File
@@ -117,6 +117,13 @@ class ForcedUpdateDialog(QDialog):
self.details_label = QLabel(details)
self.details_label.setWordWrap(True)
layout.addWidget(self.details_label)
self.http_warning_label = QLabel("当前使用临时 HTTP 通道下载,安装前仍会校验完整性")
self.http_warning_label.setWordWrap(True)
self.http_warning_label.setStyleSheet("color: #b45309;")
self.http_warning_label.setHidden(
not update_installer.uses_plain_http(self.result.download_url)
)
layout.addWidget(self.http_warning_label)
self.stage_label = QLabel("发现必须升级的新版本")
layout.addWidget(self.stage_label)
self.progress_bar = QProgressBar()