生成可执行库
gcc -fPIC blocksort.c decompress.c bsdiff.c randtable.c bzip2.c huffman.c compress.c bzlib.c crctable.c -o OceanDiff
生成动态库,加-shared
gcc -fPIC -shared blocksort.c decompress.c bsdiff.c randtable.c bzip2.c huffman.c compress.c bzlib.c crctable.c -o OceanDiff.so
利用生成的库生成差分包
./OceanDiff old.apk new.apk apk.patch
gcc -fPIC blocksort.c decompress.c bsdiff.c randtable.c bzip2.c huffman.c compress.c bzlib.c crctable.c -o OceanDiff
生成动态库,加-shared
gcc -fPIC -shared blocksort.c decompress.c bsdiff.c randtable.c bzip2.c huffman.c compress.c bzlib.c crctable.c -o OceanDiff.so
利用生成的库生成差分包
./OceanDiff old.apk new.apk apk.patch