自动打渠道包的shell命令
来源:互联网 发布:淘宝好评卡模板 编辑:程序博客网 时间:2024/05/16 12:58
如题,现在的商业项目,特别是要在国内推广的,难免要和一些渠道商合作,这就需要我们攻城师为指定的渠道打特定的包。
以前我都是手动改build configureation,生成不同的包。
后来觉得麻烦 ,在网上学习了一下,弄了这个东西,大家看看,拿去修改修改就能用了。
1 #!/bin/sh
2
3 # build.Script.sh
4 # xxxx
5 #
6 # Created by michael on 12-1-16.
7 # Copyright (c) 2012年 xxxx. All rights reserved.
8
9
10 distDir="/Users/michael/Desktop/dist"
11 releaseDir="./build/"
12 version="1_5_0" #发布的版本号
13 rm -rdf "$distDir"
14 mkdir "$distDir"
15 rm -rdf "$releaseDir"
16 for line in $(cat channel) #读取所有渠道号channel文件 如: appstore:10001 {渠道名:渠道号}
17 do
18 ipafilename=`echo $line|cut -f1 -d':'` #渠道名
19 sourceid=`echo $line|cut -f2 -d':'` #渠道号
20 xcodebuild clean -configuration "Distribution_${ipafilename}" #clean项目
21 echo "ipafilename=$ipafilename"
22 echo "sourceid=$sourceid"
23 targetName="xxxx" #项目名称(xcode左边列表中显示的项目名称)
24
25
26 ipapath="${distDir}/${targetName}_${version}_for_${sourceid}.ipa"
27
28 echo "***开始build app文件***"
29 xcodebuild -project xxxx.xcodeproj -target "$targetName" -configuration "Distribution_${ipafilename}" -sdk iphoneos5.0 build
30appfile="${releaseDir}Distribution_${ipafilename}-iphoneos/${targetName}.app"
31 cd ${releaseDir}Distribution_${ipafilename}-iphoneos/
32 zip -r "${targetName}_${ipafilename}_${version}.zip" "${targetName}.app"
33 cd ..
34 cd ..
35 echo "***开始打ipa渠道包****"
36 /usr/bin/xcrun -sdk iphoneos5.0 PackageApplication -v "$appfile" -o "$ipapath" --sign "iPhone Distribution: xxxxx company"
37 done
(转:http://www.cocoachina.com/macdev/tips/2013/0222/5704.html)
- 自动打渠道包的shell命令
- 自动打渠道包的shell命令
- linux基本命令认识,shell打渠道包
- iphone-批量打渠道包shell脚本
- IOS自动化的打渠道包
- Android_Gradle打多渠道的渠道包
- 自动打包各种渠道的shell(IOS)
- iOS 自动打包各种渠道的 shell
- 自动打包各种渠道的shell
- android 批量打渠道包
- Android Gradle打渠道包
- android 批量打渠道包
- 分享两种最简单的Android打渠道包的方法
- 分享两种最简单的Android打渠道包的方法
- 分享两种最简单的Android打渠道包的方法
- 两种Android打渠道包的方法
- Android使用Ant批量打渠道包
- Groovy_groovy语法帮助打渠道包
- Cocos2d-x翻译——关于我们:Cocos2d-x,Cocos2d-html5
- 如何判断一个Http Message的结束——python源码解读
- .net 与 javascript脚本的几种交互方法
- 自顶向下网络术语翻译一览表(一)
- 用户输入M,N值,从1至N开始顺序循环数数,每数到M输出该数值,直至全部输出。写出C/C++程序(链表)
- 自动打渠道包的shell命令
- php:修改NetBeans默认字体
- 如何才能在Qt Script脚本里面直接new自己的Qt C++类
- 寻求新的业务增长点,搭建企业专属电商平台
- js <abbr><blockquote>两个标签
- Java乔晓松-android中获取图片的缩略图(解决OutOfMemoryError)内存溢出的Bug
- ubuntu系统下给你的ipad充电(适用于所有ios设备)
- python的安装
- 正则表达式删除XML文件中的注释