ANT打包干净普通大众版本
前一篇文章,目录比较乱,且是think的文章摘要过来的,下面是我在自己的项目,没有其他模块。
build.xml
#!/bin/bashbasedir=$(cd "$(dirname "$0")";pwd)cd $basedir#============market follow=====by nil===#androidmarket jiuyao tengxun anzhuowang#yingyonghui jifengwang youyishichang#Nduowang mumayi other #chineseall chineseall_wap#=======================================markets="androidmarket jiuyao tengxun anzhuowang yingyonghui jifengwang youyishichang Nduowang mumayi other chineseall chineseall_wap"for market in $marketsdo echo packaging 17kreader_3.5.3_$market.apk ... sed -i '' "s/\(android:value=\)\"\(.*\)\"\( android:name=\"UMENG_CHANNEL\"\)/\1\"$market\"\3/g" AndroidManifest.xml ant -Dapk-name=17kreader -Dapk-version=3.5.3 -Dapk-market=$marketdone