Repository navigation
feat:增加部分自动更新功能选项 - #370
Draft
FeletexGee wants to merge 6 commits into
Draft
FeletexGee wants to merge 6 commits into
FeletexGee wants to merge 6 commits into
Conversation
FeletexGee
marked this pull request as draft
November 26, 2026 11:19
FeletexGee
marked this pull request as ready for review
November 26, 2026 12:22
FeletexGee
marked this pull request as draft
November 27, 2026 06:48
FeletexGee
marked this pull request as ready for review
November 27, 2026 06:59
Contributor
Author
|
因未及时合并,这个PR与涉及到浏览器修改的其他已合并PR产生了冲突。 解决冲突过程中,我采用了其他已合并PR的修改。 #369 |
Member
|
感谢你完善更新设置,也感谢这几轮同步主线、处理冲突和补充测试的工作。 我们重新从产品需求上评估了一下:目前启动检查、定时检查和用户确认安装已经覆盖了主要使用场景,现阶段更希望保持更新设置简洁、现有升级行为稳定。将启动检查和定时检查进一步拆成独立选项,目前还没有足够明确的需求支撑;自动安装则涉及任务退出、后台服务停止,以及 Windows 和 macOS 各自的安装交接,需要结合具体场景单独评估。 因此,这个 PR 的整套方案我们暂时不推进合并,先保留讨论,也不用急着为当前方案继续投入较大的修复和验收工作。后续如果有明确的用户反馈,例如「Mac 希望提前下载更新,但安装时机由用户决定」,欢迎先单独讨论这一需求,再按较小的范围实现,并保持既有默认行为兼容。 另外,浏览器的时序修复建议与更新设置分开:如果在包含 #369 的当前主线上仍能复现,可以另开一个聚焦浏览器问题的 PR,方便独立验证和维护。 感谢理解,也欢迎继续分享实际使用中遇到的不便,帮助我们把优先处理的场景确认清楚。 |
Contributor
Author
|
好的,我先回到Draft状态,然后分离浏览器修复和更新设置增强。 |
FeletexGee
marked this pull request as draft
November 27, 2026 08:47
FeletexGee
force-pushed
the
feat/enhance-auto-update-settings
branch
from
November 27, 2026 09:27
a37dc3b to
13d0c66
Compare
This was referenced Nov 27, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题与修改
原来的更新设置用总开关同时控制启动检查和定时检查,macOS 的自动下载还会一并安排退出安装。本 PR 将当前版本、手动检查、更新状态和渠道下拉框集中到「通用设置 → 软件更新」,并沿用 #343 对 DSH 重复渠道入口的处理。 Issue #293 · PR #310 · PR #343
关闭两项自动检查后仍可手动检查。关闭软件更新总开关会保留渠道和各项偏好。切换渠道成功且软件更新已启用时会检查新渠道。签名配置和 Skills 的启动检查继续独立运行。
验证
node --test执行更新相关定向测试,192 项通过,1 项因平台条件跳过。覆盖偏好保存与回滚、旧配置读取、启动与定时检查、下载后预约、退出取消和 Windows 安装交接逻辑。三项 DSH 适配测试使用经 SHA-256 核对的锁定上游源码。node dsh-plugins/workbench-native/test/updates-browser.mjs在 Chromium 通过。使用 DSH0.2.2-rc.3和 esbuild0.28.1编译工作台插件,并通过设置插槽加载,验证四项偏好落盘、关闭自动检查后的手动检查以及深色主题布局。更新后端使用测试数据。git diff --check、node scripts/check-source-docs.mjs及audit-eduwork-distribution.mjs --verify-receipt均通过。导出的源码快照包含 2,287 个文件,审计零错误、零警告。兼容性与后续事项
schemaVersion: 1,新增四个可选布尔字段。旧文件继续读取,总开关和渠道选择继续生效。Windows 的自动下载和自动安装默认关闭,macOS 保留既有 Sparkle 自动下载并在退出时安装的偏好。