Repository navigation
feat(release): 发布包成员改为 DEFLATE-9 压缩,体积降到约三分之一 - #496
Merged
Merged
Conversation
- release_tool.py build:ZIP 成员由不压缩改为 DEFLATE(级别 9),文件集与成员内容不变 - 同一检出实测:v1.5.24 内容的发布包由 3.98MB 降到 1.32MB;每次安装与更新都少下载约 2.7MB - 在野解包器自 v1.4.0 起接受 DEFLATE:用 v1.4.0、v1.4.5、v1.5.0、v1.5.12、v1.5.24 五个历史版本的解包器各解一次压缩包,升级链验证全部通过 - 压缩字节可能随打包机的 zlib 实现变化:补推对账已由 #494 的 reconcile 改为按成员内容比对,发布包合同与规则同步写明 - 新增 tests/test_release_zip_deflate.py:成员压缩方式、同机重建逐字节可复现、旧版解包器宽松分支接受压缩包、跨压缩方式对账 规格:specs/release-channel-slim.md。本次不发版;压缩在下一个正式版本的发布包上生效。
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.
改动
release_tool.py build:ZIP 成员由不压缩改为 DEFLATE(级别 9)。文件集与成员内容不变。reconcile已随 feat(install): 安装提速——归档单事务、只读体检 /zusage-doctor、渠道精简工具与自动降级安装文案 #494 合入)。tests/test_release_zip_deflate.py。效果
同一检出实测(内容为 v1.5.24 加 #494):发布包由 3.98MB 降到 1.32MB,小了 67%。每次安装与每次更新都少下载约 2.7MB;慢网下更明显。
验证
release_unpack.py各解一次压缩后的包,全部通过。在野解包器从第一个版本起就接受 DEFLATE。未验证项
发版说明素材