Created
December 17, 2010 01:37
-
-
Save whatupdave/744342 to your computer and use it in GitHub Desktop.
Builds and packages an iOS app into dropbox for deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang='en-US' xml:lang='en-US' xmlns='http://www.w3.org/1999/xhtml'> | |
<head> | |
<meta content='text/html; charset=utf-8' http-equiv='Content-type' /> | |
<title>iBots Beta</title> | |
<style type='text/css'> | |
body { | |
font-family: 'Helvetica Neue Light', HelveticaNeue-Light, Helvetica, Arial, sans-serif; | |
width: 600px; | |
margin: 0 auto; | |
} | |
h1 { font-weight: normal; } | |
li { list-style-type:none; } | |
</style> | |
</head> | |
<body> | |
<h1>iBots Launch Beta Program</h1> | |
<p> | |
iBots Launch - 0.94 | |
<ol> | |
<li> | |
<a href='itms-services://?action=download-manifest&url=http://dl.dropbox.com/u/9876462/ibotsbeta/0.94.plist'>Wireless install</a> | |
(iOS4.0+) | |
</li> | |
<li> | |
<a href='http://dl.dropbox.com/u/9876462/ibotsbeta/0.94.ipa'>Manual download</a> | |
(open with iTunes and sync) | |
</li> | |
</ol> | |
</p> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Adapted from script by Vincent Daubry (http://blog.octo.com/en/automating-over-the-air-deployment-for-iphone/) | |
# builds, packages and puts in dropbox | |
VERSION=$1 # i get version from command line | |
PROJECT_NAME="iBots" # App name here | |
TARGET_SDK="iphonesimulator4.0" | |
PROJECT_BUILDDIR="build/Release-iphoneos" | |
IPA_DIR="${HOME}/Dropbox/Public/ibotsbeta" # folder to drop ipa files | |
DEVELOPER_NAME="iPhone Developer: Steve Jobs (4ML43ZX9Z8)" | |
MANAGED_PROFILES_DIR="${HOME}/Library/MobileDevice/Provisioning Profiles/" | |
PROVISONING_PROFILE="${MANAGED_PROFILES_DIR}$(ls -tr "$MANAGED_PROFILES_DIR" | tail -n 1)" # this grabs the most recent managed Provisioning Profile | |
DROPBOX_URL="http://dl.dropbox.com/u/9876462/ibotsbeta/" # this is just used to show the download url | |
# compile project | |
xcodebuild -target "${PROJECT_NAME}" -sdk "${TARGET_SDK}" -configuration Release | |
# Check if build succeeded | |
if [ $? != 0 ] | |
then | |
exit 1 | |
fi | |
/usr/bin/xcrun -sdk iphoneos PackageApplication -v "${PROJECT_BUILDDIR}/${PROJECT_NAME}.app" -o "${IPA_DIR}/${VERSION}.ipa" --sign "${DEVELOPER_NAME}" --embed "${PROVISONING_PROFILE}" | |
# Check if packaging succeeded | |
if [ $? != 0 ] | |
then | |
exit 1 | |
fi | |
echo "${PROJECT_NAME} Successfuly Built and Packaged!" | |
echo "-----------------------------------------------" | |
echo "Wireless install link ( itms-services://?action=download-manifest&url=${DROPBOX_URL}${VERSION}.plist )" | |
echo "Manual download link ( ${DROPBOX_URL}${VERSION}.ipa )" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment