1.3.3 • Published 4 years ago

mt-resource-diff-patch v1.3.3

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

前端资源包增量更新与补丁合并


resource-diff-patch

  1. 生成增量包
const { generatorPatchZip } = require('@mt/resource-diff-patch')

generatorPatchZip(
  '/xxx/test_1.0.0.zip',
  '/xxx/test_1.0.1.zip',
  '/xxx/patchs',
  'test_1.0.0_1.0.1.patch'
)
  .then((patchResourceZipPath) => {
    console.log(patchResourceZipPath)
  })
  .catch((e) => {
    console.log(e)
  })
  1. 打补丁到旧资源包
const { patchResource } = require('@mt/resource-diff-patch')

patchResource(
  '/Users/mifind/Desktop/test/test.js.zip',
  '/Users/mifind/Desktop/test/test.patch.zip',
  '/Users/mifind/Desktop/test',
  'test.new'
).then((res) => {
  console.log(res)
})
1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago