Skip to content

Commit 474cbb8

Browse files
committed
update HDiffPatch for support 2GB <= zip file size <4GB on 32bit Android;
1 parent 08f16f3 commit 474cbb8

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# [ApkDiffPatch]
2-
[![release](https://img.shields.io/badge/release-v1.4.0-blue.svg)](https://github.com/sisong/ApkDiffPatch/releases)
2+
[![release](https://img.shields.io/badge/release-v1.4.1-blue.svg)](https://github.com/sisong/ApkDiffPatch/releases)
33
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/sisong/ApkDiffPatch/blob/master/LICENSE)
44
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-blue.svg)](https://github.com/sisong/ApkDiffPatch/pulls)
55
[![+issue Welcome](https://img.shields.io/github/issues-raw/sisong/ApkDiffPatch?color=green&label=%2Bissue%20welcome)](https://github.com/sisong/ApkDiffPatch/issues)

src/apk_normalized.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static void printUsage(){
6464
" if set 9, compress rate is high, but compress speed is very slow when patching.\n"
6565
" -as-alignSize\n"
6666
" set align size for uncompressed file in zip for optimize app run speed,\n"
67-
" alignSize>=1, recommended 4,8, DEFAULT -as-8.\n"
67+
" 1 <= alignSize <= 4k, recommended 4,8, DEFAULT -as-8.\n"
6868
" -v output Version info. \n"
6969
);
7070
}
@@ -142,7 +142,7 @@ int normalized_cmd_line(int argc, const char * argv[]){
142142
_options_check(alignSize==_kNULL_SIZE,"-as-?")
143143
const char* pnum=op+4;
144144
_options_check(kmg_to_size(pnum,strlen(pnum),&alignSize),"-as-?");
145-
const size_t _kMaxAlignSize=(1<<20);
145+
const size_t _kMaxAlignSize=4*1024;
146146
_options_check((1<=alignSize)&&(alignSize<=_kMaxAlignSize),"-as-?");
147147
}else{
148148
_options_check(hpatch_FALSE,"-as?");

src/patch/patch_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
#define APKDIFFPATCH_VERSION_MAJOR 1
3535
#define APKDIFFPATCH_VERSION_MINOR 4
36-
#define APKDIFFPATCH_VERSION_RELEASE 0
36+
#define APKDIFFPATCH_VERSION_RELEASE 1
3737

3838
#define _APKDIFFPATCH_VERSION APKDIFFPATCH_VERSION_MAJOR.APKDIFFPATCH_VERSION_MINOR.APKDIFFPATCH_VERSION_RELEASE
3939
#define _APKDIFFPATCH_QUOTE(str) #str

0 commit comments

Comments
 (0)