refactor: 使用 fflate 替换 jszip 处理 ZIP 文件#1479
Open
cyfung1031 wants to merge 7 commits into
Open
Conversation
Collaborator
Author
|
@CodFrm JSZIP打包出来的,里面有些档案包含这个,有些没有 如果要保留这个东西, fflate 会全部档案都加这个 待这个处理好再取消 draft |
Member
只是一个注释,你用某些zip管理器打开,你可以看到右侧有这个评论 |
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.
Checklist / 检查清单
Description / 描述
本 PR 将项目中的 ZIP 处理逻辑从
jszip迁移到fflate,以减少依赖并统一 ZIP 文件的读写、打包和时间戳处理。主要变更:
fflate依赖,移除jszip及其相关依赖。src/pkg/utils/jszip-x.ts,基于fflate实现兼容现有调用方式的 ZIP 封装。scripts/pack.js,使用fflate.zipSync生成 Chrome / Firefox ZIP 包。string和Blob内容。jszip的时区偏移补偿。移除 ZIP 生成时的可保留comment字段,以适配新的fflate实现。comment字段 但好像没用Screenshots / 截图