[Enhancement] 后台自动下载更新#6092
Conversation
Co-authored-by: 3gf8jv4dv <3gf8jv4dv@gmail.com>
…More/HMCL into auto-update-download
# Conflicts: # HMCL/src/main/java/org/jackhuang/hmcl/ui/main/SettingsPage.java
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces an automatic update download feature, allowing the launcher to download updates in the background and cache them for installation. It adds the corresponding UI settings, localization strings, and a reusable hash verification utility. The review feedback highlights several critical improvements: implementing a version check to prevent downloading updates when the launcher is already up-to-date, using a thread-safe ConcurrentHashMap for the download cache to avoid concurrency issues, reverting an apparently erroneous change to the NIGHTLY channel name, and using Files.isRegularFile instead of Files.exists to prevent attempting to hash directories.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Closes #4352
目前默认关闭,开启后在检查更新成功后自动下载更新然后再弹窗