Permalink
Browse files

script to archive a newly created release

  • Loading branch information...
1 parent 18841a3 commit e969757a7868400a8f3b80d6040bd64a1f9824a3 @setuid setuid committed Sep 29, 2012
Showing with 31 additions and 0 deletions.
  1. +31 −0 scripts/archive.sh
View
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+PROJECT_HOME=`pwd`
+PROJECT_PATH=./AutoBuildCD
+PROJECT_NAME="AutoBuildCD"
+
+BUILD_TARGET="AutoBuildCD"
+
+DATE=`date +"%Y%m%d-%H%M%S"`
+APP_NAME="AutoBuildCD"
+SIGN_IDENTITY="iPhone Distribution: Concrete Solutions Ltda"
+PROVISIONING_PROFILE="./provision/AutoBuildCD_Ad_Hoc.mobileprovision"
+
+DSTROOT=../builds
+OBJROOT=../builds
+SYMROOT=../builds
+
+echo "[#] - Archiving project"
+echo "-------------------------------------------------------------"
+xcodebuild -project ${PROJECT_PATH}/${PROJECT_NAME}.xcodeproj \
+ -target ${BUILD_TARGET} \
+ -configuration Release \
+ clean build \
+ DSTROOT=${DSTROOT} \
+ SYMROOT=${SYMROOT} \
+ OBJROOT=${OBJROOT}
+
+xcrun -sdk iphoneos PackageApplication -v builds/Release-iphoneos/${APP_NAME}.app -o $PWD/builds/${APP_NAME}-$DATE.ipa \
+ --sign "${SIGN_IDENTITY}" --embed "${PROVISIONING_PROFILE}"
+
+echo "[#] - New release available at: $PWD/${APP_NAME}-${DATE}.ipa"

0 comments on commit e969757

Please sign in to comment.