Skip to content

feat:允许插件指定所支持的OS平台#1712

Merged
HelloWRC merged 21 commits into
ClassIsland:masterfrom
diann34:plugin_osplatform
Mar 29, 2026
Merged

feat:允许插件指定所支持的OS平台#1712
HelloWRC merged 21 commits into
ClassIsland:masterfrom
diann34:plugin_osplatform

Conversation

@diann34

@diann34 diann34 commented Mar 15, 2026

Copy link
Copy Markdown
Contributor

这个 Pull Request 做了什么?

此Pull Request更改了如下内容:
feat:在插件元数据中添加SupportedOSPlatforms字段以声明插件所支持的OS平台
feat:添加对OSPlatform的反序列化支持

表现形式为:若A插件指定了所支持的操作系统,且用户选择在未在该插件所支持的操作系统上安装A插件,则显示一条警告:此操作系统不受该插件支持

相关 Issue

Close #1609

检查清单

  • 我已经在本地测试过这个 PR,确保欲实现的功能或修复的问题能正常工作。

与此Pull Request相关的其他Pull Request

ClassIsland/PluginTemplate2:feat:允许插件指定所支持的OS平台

@diann34 diann34 marked this pull request as ready for review March 15, 2026 09:37
@diann34 diann34 requested review from a team and HelloWRC as code owners March 15, 2026 09:37
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@HelloWRC

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: 0ae39686fa

ℹ️ 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 ClassIsland/Services/PluginService.cs
Comment thread ClassIsland/Services/PluginMarketService.cs Outdated
Comment thread ClassIsland/Converters/OSPlatformTypeConverter.cs
@diann34 diann34 requested a review from HelloWRC March 28, 2026 12:20
Comment thread ClassIsland/Services/PluginMarketService.cs Outdated
Co-authored-by: Wang Ruocheng <hello_wrc@outlook.com>
@diann34 diann34 requested a review from HelloWRC March 29, 2026 02:36
@HelloWRC HelloWRC merged commit 6eb1476 into ClassIsland:master Mar 29, 2026
2 checks passed
@HelloWRC

Copy link
Copy Markdown
Member

感谢您的贡献🤝

昔涟 爱

@diann34 diann34 deleted the plugin_osplatform branch March 29, 2026 03:36
C14147 pushed a commit to sophia-schola/ClassIsland-NEXT that referenced this pull request Mar 29, 2026
* fix:修复IsPluginsAutoUpdateEnabled未被使用的问题

* fix:UI:主题错误信息可编辑

* fix:解决RawInput在不受支持的平台上初始化

* fix:WOA平台上程序无法启动

* fix:指定为只在x86_64的系统架构上安装Patch

* feat:在插件崩溃信息中添加插件版本

* feat:在插件元数据中添加SupportedOSPlatforms字段以声明插件所支持的OS平台

* feat:默认值为三个平台

* feat:添加对OSPlatform的反序列化支持

* Pass CodeFactor checks

* feat:在插件市场页面添加插件不支持警告

* ci:pass codefactor checks

* refactor:简化操作系统检查逻辑

* refactor:简化判断逻辑

* fix:为其他deserializer补充WithTypeConverter
refactor:使判断逻辑更清晰

* Update ClassIsland/Services/PluginMarketService.cs

Co-authored-by: Wang Ruocheng <hello_wrc@outlook.com>

---------

Co-authored-by: Wang Ruocheng <hello_wrc@outlook.com>
Koharu-Mizuki pushed a commit to Koharu-Mizuki/ClassIsland-RB that referenced this pull request Jun 19, 2026
* fix:修复IsPluginsAutoUpdateEnabled未被使用的问题

* fix:UI:主题错误信息可编辑

* fix:解决RawInput在不受支持的平台上初始化

* fix:WOA平台上程序无法启动

* fix:指定为只在x86_64的系统架构上安装Patch

* feat:在插件崩溃信息中添加插件版本

* feat:在插件元数据中添加SupportedOSPlatforms字段以声明插件所支持的OS平台

* feat:默认值为三个平台

* feat:添加对OSPlatform的反序列化支持

* Pass CodeFactor checks

* feat:在插件市场页面添加插件不支持警告

* ci:pass codefactor checks

* refactor:简化操作系统检查逻辑

* refactor:简化判断逻辑

* fix:为其他deserializer补充WithTypeConverter
refactor:使判断逻辑更清晰

* Update ClassIsland/Services/PluginMarketService.cs

Co-authored-by: Wang Ruocheng <hello_wrc@outlook.com>

---------

Co-authored-by: Wang Ruocheng <hello_wrc@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

允许插件指定所支持的OS平台

2 participants