[release/3.6] 添加“提前预览 HMCL 版本”选项#4668
Merged
Glavo merged 3 commits intoHMCL-dev:release/3.6from Oct 13, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new "Preview HMCL releases early" option to the settings that allows users to receive pre-release versions of HMCL for testing before their official release. The implementation includes UI changes, configuration updates, and modifications to the update checking mechanism.
- Adds a new toggle button in settings to enable/disable preview updates
- Modifies the update checker to support preview versions by appending "-preview" to the channel name
- Updates the upgrade dialog to handle preview-specific changelog sections
- Adds localization strings for the new feature in multiple languages
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| I18N*.properties | Adds localization strings for the preview update feature in English, Spanish, and Chinese variants |
| UpdateChecker.java | Modifies update checking logic to support preview versions and pass preview flag through the system |
| RemoteVersion.java | Adds preview field to track whether a version is a preview release |
| SettingsView.java | Adds the preview toggle button UI component to the settings panel |
| SettingsPage.java | Binds the preview toggle to update checking logic with proper event handling |
| UpgradeDialog.java | Updates changelog handling to show preview-specific content when available |
| Config.java | Adds configuration property to persist the preview update preference |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
#4223
#4598
#4599