每次要生成keystore都要输入一堆命令,而且难记,顺便就写了几个小脚本:
可以在这里下载
http://github.com/pjq/AndroidShell/tree/master
用来生成keystore的,并且自动对当前工程APK文件进行签名,需要在工程根目录下执行
比如要产生 myapp.keystore
只要执行:./genkey myapp
cat /usr/local/bin/genkey
#!/bin/sh
#Author:[email protected]
#Date:20090607
#description:used to gen the keystore
#Filename:genkey.sh
#USAGE:
#Example:
#./genkey.sh appname
#
#
echo "========================================"
APKFILE=`ls bin/ -l|grep apk|cut -d " " -f8`
echo "APKFILE=${APKFILE}"
echo "========================================"
echo
…