Packer重构#6025
Open
zms9110750 wants to merge 12 commits into
Hidden character warning
The head ref may contain hidden characters: "packer\u91cd\u6784"
Open
Conversation
清理调试文件夹
将简化版 line.IndexOf('=') 替换为完整的 DeserializeFromLang 状态机,
补回原版支持的 #PARSE_ESCAPES 续行、/* */ 多行注释、
// / # / < 单行注释、空行跳过等特性。
同步删除 AssetsNamespaceResource 中未使用的 FileProviders 属性
和废弃的 launchSettings.json。
和 Packer.Core 无关的测试改动全部丢弃, 避免合并冲突和 PR 审查干扰。
- 移除 PackerPolicyItem 抽象方法,改为 PackerPolicy switch 类型派发 - 各策略 CreateProviders 采用独立签名,按需接收参数 - DirectPolicy 现在读取 globalConfig.Base.TargetLanguages(不再硬编码 zh_cn) - IndirectPolicy 接收完整 Config 传递给目标,目标自行合并局域配置 - CompositionPolicy 新增 destType: "lang" 支持 - 新增 CompositionLangFile,与 CompositionJsonFile 对称 - 文件容斥顺序修正:InclusionDomains 优先于 ExclusionDomains - 新增 5 个集成测试,使用 projects/packer-example 真实数据
- TextFile 加 PolicyItem 和 Merge(TextFile) 方法处理 Append - KVPFile 的 PolicyItem 上提至 TextFile,子类继承 - Program.cs 合并逻辑统一为 TextFile 分支,内部分发 KVPFile - DestinationReplacement 在 ZIP 写入时用预编译 Regex 替换路径 - FloatingConfig 文档注释修正:内容替换表 → 目标地址替换表 - CompositionEntry 提取到独立文件
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.
重构了新项目。但workflows没改。