android dev

Android 签名工具 shell脚本

2016-05-23  本文已影响86人  康熙微博私访记

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
上一篇下一篇

猜你喜欢

热点阅读