Android 签名工具 shell脚本

时间:2023-03-08 15:55:24
Android 签名工具 shell脚本

signApk.sh

#!/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