Code Monkey home page Code Monkey logo

releasedir's Introduction

Release.sh打包脚本

#--------------------------------------------------------------------------------
# 脚本说明:
# 1、实现功能:
#     1)、指定打包项目的Build号,Version版本号(Version号可选择自增或自定义)
#     2)、导出xcarchive文件
#     3)、打包生成ipa文件
# 2、使用方式:
#     1)、将ReleaseDir文件夹,放到跟所要打包的项目的根目录(TestDemo)同级别的目录下
#     2)、cd至ReleaseDir,运行脚本./Release.sh TestDemo,并选择输入相关参数,开始打包
#     3)、完成打包后,生成的目标文件在如下目录:
#          /ReleaseDir/ArchivePath/TestDemo/1.0.0/2017_03_03_10:37:34
#         (/ReleaseDir/ArchivePath/打包项目名称/打包版本号/打包时间)
#--------------------------------------------------------------------------------
#
#--------------------------------------------------------------------------------
# 打包project
#    ./Release.sh  <Project directory name> [-s <Name>] [-e] [-d] [-a] [-b <Build number>]
# 打包workspace
#    ./Release.sh  <Project directory name> [-w] [-s <Name>] [-e] [-d] [-b <Build number>] [-v <Version number>]
# 参数说明:
#     <Project directory name>   第一个参数:所要打包的项目的根目录文件夹名称         
#     -w 				         workspace打包,不传默认为project打包
#     -s <Name>			         对应workspace下需要编译的scheme(不传默认取xcodeproj根目录文件名)
#     -e 	        	         打包前是否先编译工程(不传默认不编译)
#     -d 		                 工程的configuration为 Debug 模式,不传默认为Release
#     -a 			             打包,Version版本号自动+1(针对多次打测试包时的版本号修改)
#	  -b <Build Num>             Build版本号,指定项目Build号
#	  -v <Version Num>           Version版本号,指定项目Version号
#  注意,参数-a 与 -v 互斥,只能选择传其中一种参数!!
#--------------------------------------------------------------------------------
#
#--------------------------------------------------------------------------------
# ReleaseDir文件目录说明:
#
# |___TestDemo                                所要打包的项目的根目录
# |___ReleaseDir                              打包相关资源的根目录
#    |___Release.sh                           Release.sh打包脚本
#    |___ExportOptions.plist                  -exportOptionsPlist 配置文件
#    |___ArchivePath                          打包文件输出路径
#       |___TestDemo                          打包项目名称
#          |___1.0.0                          打包版本号
#             |___2017_03_02_16/23/28         打包时间(格式:年_月_日_时/分/秒)
#                |___TestDemo_1.0.0.xcarchive 导出的.xcarchive文件
#                |___TestDemo.ipa             导出的.ipa文件
#                |___LogPath                  打包日志
#
#--------------------------------------------------------------------------------

releasedir's People

Contributors

lele8446 avatar

Watchers

 avatar  avatar

Forkers

cdliufei

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.