-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added autobuild and certificate information for the project
- Loading branch information
Michael Nachbaur
committed
Jan 21, 2011
1 parent
a390dac
commit b0fc3b3
Showing
6 changed files
with
106 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>get-task-allow</key> | ||
<false/> | ||
</dict> | ||
</plist> |
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CONFIGURATIONS="Distribution Release" | ||
|
||
ProvisionRelease=01311B97-0135-4DF3-BB39-CF1963AEE464.mobileprovision | ||
ProvisionDistribution=286D4FBF-1DA7-4AEA-820F-12D9A66AFADD.mobileprovision |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/sh | ||
function failed() | ||
{ | ||
echo "Failed $*: $@" >&2 | ||
exit 1 | ||
} | ||
|
||
set -ex | ||
git clean -dfx | ||
|
||
export OUTPUT=$WORKSPACE/output | ||
rm -rf $OUTPUT | ||
mkdir -p $OUTPUT | ||
PROFILE_HOME=~/Library/MobileDevice/Provisioning\ Profiles/ | ||
KEYCHAIN=~/Library/Keychains/login.keychain | ||
|
||
. "$WORKSPACE/autobuild/build.config" | ||
|
||
[ -d "$PROFILE_HOME" ] || mkdir -p "$PROFILE_HOME" | ||
security unlock -p `cat ~/.build_password` | ||
agvtool new-version -all $BUILD_NUMBER | ||
|
||
for config in $CONFIGURATIONS; do | ||
provision=$(eval echo \$`echo Provision$config`) | ||
|
||
cert="$WORKSPACE/autobuild/$provision" | ||
archive="$OUTPUT/$JOB_NAME-$BUILD_NUMBER-$config.zip"; | ||
ipaname="$OUTPUT/$JOB_NAME-$BUILD_NUMBER-$config.ipa" | ||
provname="$OUTPUT/$JOB_NAME-$BUILD_NUMBER-$config.mobileprovision" | ||
|
||
[ -f "$cert" ] && cp "$cert" "$PROFILE_HOME" | ||
xcodebuild -activetarget -configuration $config build || failed build; | ||
|
||
( | ||
cd build/$config-iphoneos || failed "no build output"; | ||
if [ "x$config" = "xDistribution" ]; then | ||
rm -rf Payload | ||
rm -f *.ipa | ||
mkdir Payload | ||
cp -Rp *.app Payload/ | ||
if [ "x$ICONPATH" != "x" ]; then | ||
cp -f $WORKSPACE/$ICONPATH Payload/iTunesArtwork | ||
fi | ||
|
||
zip -r $ipaname Payload | ||
cp $cert $provname | ||
else | ||
zip -r -T -y "$archive" *.app $provision || failed zip; | ||
fi | ||
) | ||
done |
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