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
    原文作者:康熙微博私访记
    原文地址: https://www.jianshu.com/p/29381e8a4fb1
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞