Skip to content

Commit

Permalink
[MB-1082] Package build info
Browse files Browse the repository at this point in the history
  • Loading branch information
rlepinski committed Apr 16, 2015
1 parent a6d396f commit cc5cb15
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Deploy/distribute.sh
Expand Up @@ -35,6 +35,7 @@ source "${ROOT_PATH}"/scripts/configure-xcode-version.sh
# Grab the release version
VERSION=$(awk <$SCRIPT_DIRECTORY/../AirshipLib/Config.xcconfig "\$1 == \"CURRENT_PROJECT_VERSION\" { print \$3 }")


# Update AirshipLib.xcscheme with the release version
sed "s/-[0-9].[0-9].[0-9].a/-$VERSION.a/g" $XCSCHEME_PATH/AirshipLib.xcscheme > AirshipLib.xcscheme.tmp && mv -f AirshipLib.xcscheme.tmp $XCSCHEME_PATH/AirshipLib.xcscheme

Expand Down Expand Up @@ -69,8 +70,20 @@ cp "${ROOT_PATH}/CHANGELOG" "${OUTPUT_PATH}"
cp "${ROOT_PATH}/README.rst" "${OUTPUT_PATH}"
cp "${ROOT_PATH}/LICENSE" "${OUTPUT_PATH}"

# Build info
BUILD_INFO=$OUTPUT_PATH/BUILD_INFO
echo "Urban Airship SDK v${VERSION}" >> $BUILD_INFO
echo "Build time: `date`" >> $BUILD_INFO
echo "SDK commit: `git log -n 1 --format='%h'`" >> $BUILD_INFO
echo "Xcode version: `xcrun xcodebuild -version | tr '\r\n' ' '`" >> $BUILD_INFO

# Additional build info
if test -f $ROOT_PATH/BUILD_INFO;
then cat $ROOT_PATH/BUILD_INFO >> $BUILD_INFO;
fi

cd $OUTPUT_PATH
for PACKAGE in RichPushSample PushSample Airship reference-docs LICENSE CHANGELOG README.rst; do
for PACKAGE in RichPushSample PushSample Airship reference-docs LICENSE CHANGELOG README.rst BUILD_INFO; do
zip -r libUAirship-latest.zip $PACKAGE --exclude=*.DS_Store*
done
cd -
Expand Down

0 comments on commit cc5cb15

Please sign in to comment.