Skip to content

Instantly share code, notes, and snippets.

@jkubicek
Created April 19, 2011 10:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkubicek/927128 to your computer and use it in GitHub Desktop.
Save jkubicek/927128 to your computer and use it in GitHub Desktop.
Bash script to automate app deployment. Sets the updates the version numbers, sets a tag in git
#!/bin/sh
# AdHocDeployment.sh
# Newsgroup
#
# Created by Jim Kubicek on 4/1/11.
# Copyright 2011 jimkubicek.com. All rights reserved.
# Update version number
agvtool next-version -all
agvtool new-marketing-version 0.1
# Update commit
VERS=`agvtool vers -terse`
MVERS=`agvtool what-marketing-version -terse1`
TAG="v$MVERS{$VERS}"
COMMIT_MSG="Update version to v$MVERS ($VERS)"
git add .
git commit -m "$COMMIT_MSG"
# Git tag
git tag $TAG -m "$COMMIT_MSG"
# Build and Archive
# Push to TestFlightApp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment