Android 签名工具 shell脚本

Android 签名工具 shell脚本

signApk.sh

Shell脚本代码如下:

#!/bin/bash

#$1 signed and unaligned apk
#$2 unsigned apk
#$3 aligned apk

#./signApk.sh test-signed.apk test-unsigned.apk test-aligned.apk
    
jarsigner -keystore ./test.keystore -storepass 123456 -keypass 123456 -signedjar $1 $2 test.keystore
#execute ZIPALIGN
ZIPALIGN -v 4 $2 $3
#verify *****ZIPALIGN CONFIRMED
ZIPALIGN -c -v 4 $3

你可能感兴趣的:(Android 签名工具 shell脚本)