Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ipa script

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

#! / bin/bash

APP_NAME= "APP"

APP_CODE_SIGN_IDENTITY= "iPhone Distribution: XXXX (XXXX)"

APP_PROVISIONING_PROFILE= "/ workspace/tmp/daily/adHoc.mobileprovision"

APP_PLIST= "/ workspace/tmp/daily/export.plist"

# TODAY= `date +% Y% m% d`

TODAY= "20170527"

SVN_URL= "" $TODAY

DIR_SRC= ""

DIR_WORK= "/ workspace/tmp/daily"

DIR_DAILY=$DIR_WORK/$TODAY

DIR_DAILY_SVN=$DIR_DAILY/svn

DIR_DAILY_SRC=$DIR_DAILY/src

DIR_DAILY_BUILD=$DIR_DAILY/build

DIR_DAILY_ARCHIVE=$DIR_DAILY/archive

DIR_DAILY_IPA=$DIR_DAILY/ipa

# 1 prepare the environment rmdir, mkdir

Function clean () {

Echo $DIR_DAILY

If [- d $DIR_DAILY]

Then `rm-fr $DIR_ Daly`

Fi

}

Function mkdirs () {

Echo

Mkdir-p $DIR_DAILY_SVN

Mkdir-p $DIR_DAILY_SRC

Mkdir-p $DIR_DAILY_BUILD

Mkdir-p $DIR_DAILY_ARCHIVE

Mkdir-p $DIR_DAILY_IPA

}

Function initEnv () {

Clean

Mkdirs

}

Function ipa () {

Xcodebuild-exportArchive-archivePath $DIR_DAILY_ARCHIVE/$APP_NAME.xcarchive-exportPath $DIR_DAILY_IPA-exportOptionsPlist $APP_PLIST CODE_SIGN_IDENTITY=$APP_CODE_SIGN_IDENTITY PROVISIONING_PROFILE=$APP_PROVISIONING_PROFILE

}

Function checkOut () {

. / exportProject.sh checkOut $SVN_URL $DIR_DAILY_SVN

. / exportProject.sh unzipSrc $SVN_URL $DIR_DAILY_SVN

}

Function main () {

InitEnv

CheckOut

BuildCC

BuildWorkFlow

BuildMP

}

# run the Shell function specified by the first parameter in the command line argument

$@

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report