Skip to content

生成的patch无法被bspatch使用 #3

Open

Description

@gucong3000
const fs = require("fs-extra-async");
// bsdiff 生成补丁
var diffBuf = bsdiff.diff(originBuf, zipBuffer);
fs.outputFileAsync("dist/" + oldzip + ".patch", diffBuf)
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

  1. tdzl2003 commented on Sep 4, 2017

    @tdzl2003
    Contributor

    楼主是brew install的bspatch?可能会是版本不一致导致的。这个模块当时是拉的最新的bsdiff源码,brew里的可能会老一点。

  2. gucong3000 commented on Sep 4, 2017

    @gucong3000
    Author

    apt-get 安装的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions