Follow

7-zip 的使用心得

\1. 虽然打得开NSIS安装包,但最后一个支持解析 .nsi 安装脚本的版本是 15.05

\2. epub 打包:
7-zip 没有 infozip 的 `grow` 模式,压缩档内文件会重排序,而 epub 标准需要把 mimetype 以 store 方式置于 offset 0 的位置。
不过现在的阅读器大都能读不标准的 epub 就是了。

\3. LZMA、PPMd等方法压缩率都高于 good old deflate,一般情况没必要启用 7z 格式的固实压缩,非固实可以提高档内单文件解压效率。

\4. 常用附加参数: `tc=off cu=on` ,关掉多余的文件时间戳信息,启用 utf-8 文件名。

\5. 视频、音频、一些图像格式(如png)、电子书(如epub/mobi/azw3/chm) 本身就是压缩格式,打包时没必要再压缩,直接 store 。

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.