Created
April 19, 2011 10:59
-
-
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
This file contains hidden or 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 | |
# 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