Skip to content

[Enhancement] 附加内容-检查更新功能优化 - #6531

Open
ToobLac wants to merge 21 commits into
HMCL-dev:mainfrom
ToobLac:update
Open

[Enhancement] 附加内容-检查更新功能优化#6531
ToobLac wants to merge 21 commits into
HMCL-dev:mainfrom
ToobLac:update

Conversation

@ToobLac

@ToobLac ToobLac commented Jul 29, 2026

Copy link
Copy Markdown
Contributor
  • 检查更新时找到合适的最新版本,不再与当前版本的发布时间进行比较 在跨版本更新时不对发布时间进行限制,从而解决大部分循环更新/跨版本无法更新的问题
  • 允许设置是否检查更新到测试版,并在表格中展示更新频道
  • 合并冗余代码

Fixes #5865 Fixes #3841 Fixes #3705

#4839 由于修复了就会引入新问题所以暂时不纳入考量

@ToobLac
ToobLac marked this pull request as ready for review July 29, 2026 07:11
@github-actions github-actions Bot added the 100+ label Jul 29, 2026
@Glavo

Glavo commented Jul 29, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ea4c963430

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ToobLac
ToobLac marked this pull request as draft July 31, 2026 12:32
@ToobLac
ToobLac marked this pull request as ready for review July 31, 2026 13:05
Comment thread HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties Outdated
@Minecraft269

Copy link
Copy Markdown

话说 是不是可以把 #6552 顺带修了?

@ToobLac

ToobLac commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

话说 是不是可以把 #6552 顺带修了?

Not planned. 那个纯纯模组自己的问题。

@Minecraft269

Copy link
Copy Markdown

Not planned. 那个纯纯模组自己的问题。

彳亍

ToobLac added 3 commits August 1, 2026 15:39
# Conflicts:
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/instances/AddonUpdatesPage.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/addon/RemoteAddon.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/addon/mod/LocalModFile.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/addon/repository/CurseForgeRemoteAddonRepository.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/addon/repository/ModrinthRemoteAddonRepository.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/addon/resourcepack/ResourcePackZipFile.java
@Glavo

Glavo commented Aug 2, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bc0aa10fed

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

ToobLac added 2 commits August 2, 2026 20:45
# Conflicts:
#	HMCLCore/src/main/java/org/jackhuang/hmcl/addon/mod/LocalModFile.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/addon/resourcepack/ResourcePackZipFile.java
@Glavo

Glavo commented Aug 4, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1fbb760b0f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread HMCL/src/main/java/org/jackhuang/hmcl/ui/instances/AddonCheckUpdatesTask.java Outdated
}

/// Whether to update addons to preview versions
@SerializedName("updateAddonsToPreview")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这真的应该放在设置里吗?我觉得应该是每次检查更新的时候进行切换,而不是在全局丢一个这样的选项。

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这真的应该放在设置里吗?我觉得应该是每次检查更新的时候进行切换,而不是在全局丢一个这样的选项。

点击检查更新按钮后就直接开始了,然后出现检查的结果。这其中怎么放这个选项?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

现在打算检查更新的时候保留全版本候选和正式版候选,然后在那个表格页面加个checkbox

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我还是觉得应该保留全局设置作为默认值

@github-actions github-actions Bot added 500+ and removed 100+ labels Aug 6, 2026
# Conflicts:
#	HMCL/src/main/java/org/jackhuang/hmcl/ui/instances/AddonUpdatesPage.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/addon/LocalAddonFile.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/addon/RemoteAddon.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/addon/mod/LocalModFile.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/addon/repository/CurseForgeRemoteAddonRepository.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/addon/repository/ModrinthRemoteAddonRepository.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/addon/resourcepack/ResourcePackFolder.java
#	HMCLCore/src/main/java/org/jackhuang/hmcl/addon/resourcepack/ResourcePackZipFile.java
@github-actions github-actions Bot added 100+ and removed 500+ labels Aug 6, 2026
@github-actions github-actions Bot added 500+ and removed 100+ labels Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

4 participants