feat(压缩能力): 优化多档压缩与资源复用
build.yaml / build (push) Successful in 43s

This commit is contained in:
xiaoqidun committed 2026-09-29 23:02:07 +08:00
1 parent 54db6afc31
commit accd0a2973
11 files changed
+358 -51

No files matched your search

+4 -1
View File
@@ -40,7 +40,10 @@ type editorResourceRefs struct {
// 入参: parts 已修改和新增的包内条目, progress 保存进度回调
// 返回: map[string]bool 可移除的二进制条目, error 读取错误
func (e *Editor) compactSourceResources(parts map[string][]byte, progress editorProgress) (map[string]bool, error) {
if len(parts) == 0 && e.revision == 0 {
if e.output != nil && e.output.protected {
return nil, nil
}
if len(parts) == 0 && e.revision == 0 && (e.output == nil || e.output.options.Mode == CompressionUnchanged) {
return nil, nil
}
reader := e.source.reader