feat: 用 HDiffPatch 重写增量更新并内置常用平台二进制

- 移除 jbsdiff,改为调用 hdiffz/hpatchz,整包逐字节还原
- 按包大小分五档调参,全部使用流式模式控制内存(单进程峰值约 104MB)
- 内置 windows64/linux64/linux_arm64/macos 二进制,其余平台可用 -Dttstd.hdiffpatch.dir 指定
- 新增 diff/patch/info/env 命令行
This commit is contained in:
2026-10-24 20:12:15 +08:00
parent f7a0bef676
commit e9fca08e1c
8 changed files with 596 additions and 518 deletions

View File

@@ -13,13 +13,6 @@
<artifactId>lunar</artifactId>
<version>1.7.7</version>
</dependency>
<!-- Java 版 bsdiff/bspatch(malensek/jbsdiff,BSD 协议),
传递依赖 org.apache.commons:commons-compress -->
<dependency>
<groupId>io.sigpipe</groupId>
<artifactId>jbsdiff</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
<properties>
<maven.compiler.source>25</maven.compiler.source>
@@ -43,7 +36,7 @@
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.ttstd.BsDiffTool</mainClass>
<mainClass>com.ttstd.ApkDeltaUpdater</mainClass>
</transformer>
</transformers>
</configuration>