iphone-批量打渠道包shell脚本
2012-07-12 11:54
302 查看
#!/bin/bash #code by xiaodao 2012-06-05 sourceipaname="test.ipa" appname="test.app" targetName="test" version="1_2_0" zipTime=`date +%m_%d` PlistBuddy="/usr/libexec/PlistBuddy" plutil="plutil" source="channel" distDir="${PWD}/pkg" configname="testConfig.plist" rm -rdf "${distDir}" mkdir -p "${distDir}" unzip ${sourceipaname} i=0 maxNum=$1 for((;${i}<${maxNum};i++)) do cd Payload cd $appname #echo ">>>>>>>>>>>>>1" #cat "${configname}" ${PlistBuddy} -c "set :channel-id test${i}" ${configname} #cat "${configname}" ${plutil} -convert binary1 ${configname} #cat "${configname}" #echo ">>>>>>>>>>>>>2" if [ "${source}" == "channel" ];then cd ../.. zip -r "${targetName}_${version}_${zipTime}_for_channel${i}.zip" Payload mv "${targetName}_${version}_${zipTime}_for_channel${i}.zip" "${distDir}/${targetName}_${version}_${zipTime}_for_channel${i}.ipa" else cd .. zip -r "${targetName}_${version}_${zipTime}_for_appstore${i}.zip" $appname mv "${targetName}_${version}_${zipTime}_for_appstore${i}.zip" $distDir cd .. fi done rm -rdf Payload
相关文章推荐
- iphone-批量打渠道包shell脚本
- shell脚本示例:批量比较多个文件的内容是否相同
- 使用shell和expect一键批量分发SSH密钥脚本
- Shell脚本实现批量下载资源并保留原始路径
- 通过linux的shell脚本批量创建用户名,用户名所属目录,设置对应密码
- iOS 批量打包--Shell脚本
- shell脚本批量修改目录下所有文件中的部分语句
- 用shell脚本批量修改文件后缀名
- shell脚本批量获取远程服务器多个项目的日志
- 有关批量重命名文件名的shell脚本
- iOS使用脚本批量打渠道包
- linux 批量复制某一类文件shell脚本
- 写了一个Linux下批量添加用户的shell脚本
- Shell 命令行,实现对若干网站状态批量查询是否正常的脚本
- 利用shell脚本批量提交网站404死链给百度
- 简易登录,批量执行命令,批量copy文件shell脚本【Linux运维之道之脚本案例】 推荐
- 批量上传文件到HDFS的Shell脚本
- shell脚本批量修改目录下所有文件中的部分语句
- 使用shell脚本对IP进行批量测速(Ping)
- FTP定时批量下载文件(SHELL脚本及使用方法 )