```javascript const fs = require("fs-extra-async"); // bsdiff 生成补丁 var diffBuf = bsdiff.diff(originBuf, zipBuffer); fs.outputFileAsync("dist/" + oldzip + ".patch", diffBuf) ``` ```bash cdyf@QIL:/mnt/e/work/static_hybrid$ bspatch dist/all_1.3.3.zip new.zip dist/all_1.3.3.zip.patch bspatch: Corrupt patch ```
Activity
tdzl2003 commentedon Sep 4, 2017
楼主是brew install的bspatch?可能会是版本不一致导致的。这个模块当时是拉的最新的bsdiff源码,brew里的可能会老一点。
gucong3000 commentedon Sep 4, 2017
apt-get 安装的