Skip to content

Instantly share code, notes, and snippets.

@timgshi
Created December 16, 2014 02:05
Show Gist options
  • Select an option

  • Save timgshi/f478a3c8cab632f48f77 to your computer and use it in GitHub Desktop.

Select an option

Save timgshi/f478a3c8cab632f48f77 to your computer and use it in GitHub Desktop.
Submit to DryDock bash script for bitrise.
#!/bin/bash
#
unzip "$BITRISE_IPA_PATH" > /dev/null
BASE_NAME=${BITRISE_IPA_PATH##*/}
APP_NAME=${BASE_NAME%.*}
BUNDLEID=`/usr/libexec/PlistBuddy -c "Print :CFBundleIdentifier" ./Payload/"$APP_NAME".app/Info.plist`
BUNDLEVER=`/usr/libexec/PlistBuddy -c "Print :CFBundleVersion" ./Payload/"$APP_NAME".app/Info.plist`
BUNDLESHORTVER=`/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" ./Payload/"$APP_NAME".app/Info.plist`
curl -v -i -X POST \
-H "X-Parse-Application-Id: ${PARSE_APPLICATION_ID}" \
-H "X-Parse-REST-API-Key: ${PARSE_REST_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"install_url": "'${S3_DEPLOY_STEP_EMAIL_READY_URL}'",
"version_channel": "'${VERSION_CHANNEL}'",
"bundle_identifier": "'${BUNDLEID}'",
"version_number": "'${BUNDLESHORTVER}'",
"build_number": "'${BUNDLEVER}'"
}' \
https://api.parse.com/1/functions/buildServerUpdate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment