feat: 启动器后台自动下载更新#6072
Open
HaoHaoLucas wants to merge 6 commits intoHMCL-dev:mainfrom
Open
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
- prepareExitForUpdate:在 JavaFX 线程上直接保存窗口状态,避免 applyStagedUpdate 死锁\n- startJava:不向子进程传递 hmcl.version.override,避免 --apply-to 后仍显示测试版本号\n- SettingsPage:更新按钮始终可见;无远端版本缓存时触发重新检查并提示 Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Related: #4352
在设置中增加「在后台自动下载更新」开关(默认关闭)。开启后,当检测到当前版本落后于远端时,在后台将更新包下载到全局目录下的 cache/update/,完成后在界面底部展示常驻提示,用户可在方便时点击「重启以更新」完成替换。行为与 issue 中描述的「类似 VS Code」一致。
主要改动
测试说明
目前只适配了简体繁体和英文