Repository navigation
feat(macos): add built-in share entry for Qoder CN - #45
Open
jackeyunjie wants to merge 1 commit into
Open
jackeyunjie wants to merge 1 commit into
jackeyunjie wants to merge 1 commit into
Conversation
新增内置分享入口「发给 Qoder CN」(目标应用 com.qodercn.app), 与 Codex、Claude 等入口一样走「激活 + 自动粘贴」路径: - ShareAction 新增 qoderCN case,补齐 targetBundleIdentifier / needsIntent / targetDisplayName / entryTitle / bundleIdentifierSuffix - share-slots.sh 新增一行,入口数 12 → 13 - 图标 08-qodercn.png 提取自本地 Qoder CN.app - zh-Hans / en 双语 InfoPlist.strings 与 Localizable.strings - ShareEntryList、ForwardTargets、ActionRunner、AppModel、BatchState 的穷尽 switch 全部补 case - ShareActionTests 补 bundle id / needsIntent / Codable round-trip 断言 - README、USAGE、PRODUCT_CAPABILITIES 文档同步为十三个入口 验证:check-localizations.swift 与 check-release-config.sh 通过; CONFIG=release make-app.sh 构建成功(13 个 appex,签名验证通过); 已实机验收——微信转发到「发给 Qoder CN」后归档与场景提示词正常 粘贴进 Qoder CN。本机 Command Line Tools 不含 XCTest.framework, swift test 未能运行,请 CI 跑测试套件。
This branch has not been deployed
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.
动机
Qoder CN(
com.qodercn.app)是国内用户量不小的 AI 编程工具。「发送到自定义」入口已经可以转发到它,但内置入口的体验更好:设置页直接显示安装状态、带官方图标、分享菜单一眼可认。本次把它补成第十三个内置入口。改动
ShareAction新增qoderCNcase,五个穷尽 switch(targetBundleIdentifier/needsIntent/targetDisplayName/entryTitle/bundleIdentifierSuffix)全部补齐Scripts/share-slots.sh新增一行:QoderCN|WeChatBridgeShareQoderCN|ShareQoderCN|qoderCN|发给 Qoder CN,并映射图标08-qodercn.png/Applications/Qoder CN.app的icon.icns(1024×1024)ShareLocalizations/QoderCN/{zh-Hans,en}.lproj/InfoPlist.strings(「发给 Qoder CN」/ "Send to Qoder CN")+Localizable.strings的入口标题与详情文案ShareEntryList/ForwardTargets/ActionRunner/AppModel/BatchState的 switch 全部补 case;应用内「发给 ▸」菜单同步出现 Qoder CNcheck-release-config.sh入口数校验 12 → 13ShareActionTests:allCases 计数 13、bundle id 断言、needsIntent清单、新增qoderCNCodable round-trip 测试(钉住与 appexDKShareAction的接线契约)验证方式
swift Scripts/check-localizations.swift✅(zh-Hans / en 一致)Scripts/check-release-config.sh✅(13 个入口、slot 与 ShareAction 双向咬合、双语 strings、图标齐全)CONFIG=release Scripts/make-app.sh✅:构建出 13 个 appex,codesign --verify --deep --strict通过;WeChatBridgeShareQoderCN.appex的 bundle id(com.xiangming.wechatbridge.ShareQoderCN)、DKShareAction=qoderCN、双语CFBundleDisplayName逐一核对无误swift test未能在本机运行:开发机只装了 Command Line Tools(Swift 6.3.3),其中不含XCTest.framework,测试目标编译报no such module 'XCTest'。改动已按现有惯例在ShareActionTests补了对应断言,请 CI 跑完整测试套件界面变化