Last active
December 26, 2015 09:09
-
-
Save andrewtheis/7127573 to your computer and use it in GitHub Desktop.
Revisions
-
andrewtheis revised this gist
Oct 23, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -12,7 +12,7 @@ NEW_BUILD_NUM=$(expr $TAG_BUILD_NUM + 1) defaults write "${PLIST_PATH%.*}" 'CFBundleVersion' "${NEW_BUILD_NUM}" &> /dev/null BUILD_NUM_SET=`defaults read "${PLIST_PATH%.*}" 'CFBundleVersion'` echo "Set build number to ${BUILD_NUM_SET} in ${INFOPLIST_PATH}" # Tag it! xcrun git tag ${TAG_VERSION}-${BUILD_NUM_SET} -
andrewtheis revised this gist
Oct 23, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -12,10 +12,10 @@ NEW_BUILD_NUM=$(expr $TAG_BUILD_NUM + 1) defaults write "${PLIST_PATH%.*}" 'CFBundleVersion' "${NEW_BUILD_NUM}" &> /dev/null BUILD_NUM_SET=`defaults read "${PLIST_PATH%.*}" 'CFBundleVersion'` echo "Set build number to ${BUILD_NUM_SET} in ${PLIST_PATH}" # Tag it! xcrun git tag ${TAG_VERSION}-${BUILD_NUM_SET} xcrun git push origin --tags echo "Bumped and tagged." -
andrewtheis revised this gist
Oct 23, 2013 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -11,9 +11,11 @@ NEW_BUILD_NUM=$(expr $TAG_BUILD_NUM + 1) # Set the new version defaults write "${PLIST_PATH%.*}" 'CFBundleVersion' "${NEW_BUILD_NUM}" &> /dev/null BUILD_NUM_SET=`defaults read "${PLIST_PATH%.*}" 'CFBundleVersion'` echo "\t\tSet build number to ${BUILD_NUM_SET} in ${PLIST_PATH}" # Tag it! xcrun git tag ${TAG_VERSION}-${BUILD_NUM_SET} xcrun git push origin --tags echo "\tBumped and tagged." -
andrewtheis revised this gist
Oct 23, 2013 . 1 changed file with 1 addition and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -16,7 +16,4 @@ echo "Set build number to ${BUILD_NUM_SET} in ${PLIST_PATH}" # Tag it! xcrun git tag ${TAG_VERSION}-${BUILD_NUM_SET} xcrun git push origin --tags -
andrewtheis revised this gist
Oct 23, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -16,7 +16,7 @@ echo "Set build number to ${BUILD_NUM_SET} in ${PLIST_PATH}" # Tag it! xcrun git tag ${TAG_VERSION}-${BUILD_NUM_SET} xcrun git push origin --tags TAG_PUSHED=`xcrun git describe --tags --abbrev=0` echo "Tagged this commit ${TAG_PUSHED}" -
andrewtheis created this gist
Oct 23, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ #!/bin/sh PLIST_PATH="${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}" # Get the current version and extract the version/build from there LATEST_TAG=`xcrun git describe --tags --abbrev=0` TAG_BUILD_NUM=${LATEST_TAG#*-} TAG_VERSION=${LATEST_TAG%-*} NEW_BUILD_NUM=$(expr $TAG_BUILD_NUM + 1) # Set the new version defaults write "${PLIST_PATH%.*}" 'CFBundleVersion' "${NEW_BUILD_NUM}" &> /dev/null BUILD_NUM_SET=`defaults read "${PLIST_PATH%.*}" 'CFBundleVersion'` echo "Set build number to ${BUILD_NUM_SET} in ${PLIST_PATH}" # Tag it! xcrun git tag ${TAG_VERSION}-${BUILD_NUM_SET} git push origin --tags TAG_PUSHED=`xcrun git describe --tags --abbrev=0` echo "Tagged this commit ${TAG_PUSHED}"