File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Loop.xcodeproj/xcshareddata/xcschemes Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 103
103
ActionType = " Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction" >
104
104
<ActionContent
105
105
title = " Run Script"
106
- scriptText = "#!/bin/bash if [[ ! -d $SRCROOT ]]; then echo "This script must be run from an Xcode Build Phase" exit 1; fi # Globals Tag= Logfile= CFBundleVersion= CFBundleShortVersionString= function init_logging () { logdir="$HOME/Library/Logs/$PRODUCT_BUNDLE_IDENTIFIER" mkdir -p $logdir Logfile="$logdir/archive_post_actions.log" exec >> $Logfile 2>&1 echo "\n\n\n$(date) Beginning archive post-actions for $CONFIGURATION" } function increment_bundle_version () { srcPlist="$1" PlistBuddy="/usr/libexec/PlistBuddy" CFBundleVersion=`$PlistBuddy -c "Print CFBundleVersion" $srcPlist` CFBundleShortVersionString=`$PlistBuddy -c "Print CFBundleShortVersionString" $srcPlist` Tag="$PRODUCT_NAME$PRODUCT_NAME_SUFFIX-$CFBundleShortVersionString-$CFBundleVersion" # Increment the bundle version for future builds CFBundleVersionNext=$(($CFBundleVersion + 1)) $PlistBuddy -c "Set :CFBundleVersion $CFBundleVersionNext" $srcPlist echo "Updated build number of $srcPlist to $CFBundleVersionNext" # Copy the new version to the settings bundle # settingsPlist="$SRCROOT/$PRODUCT_NAME/Settings.bundle/Root.plist" # $PlistBuddy -c "Set :PreferenceSpecifiers:0:DefaultValue $CFBundleShortVersionString ($CFBundleVersionNext)" $settingsPlist git add $srcPlist >> $Logfile 2>&1 } function commit_and_tag_changes () { cd "$SRCROOT" git commit -m "Auto-commit with archive $Tag" >> $Logfile 2>&1 git tag $Tag >> $Logfile 2>&1 git push >> $Logfile 2>&1 git push --tags >> $Logfile 2>&1 cd - } function merge_to_master () { cd "$SRCROOT" branch=$(git symbolic-ref --short HEAD) git checkout master >> $Logfile 2>&1 git merge "$branch" >> $Logfile 2>&1 git push >> $Logfile 2>&1 git checkout "$branch" >> $Logfile 2>&1 cd - } ## Run init_logging increment_bundle_version "$SRCROOT/$INFOPLIST_FILE" increment_bundle_version "$SRCROOT/WatchApp/Info.plist" commit_and_tag_changes ">
106
+ scriptText = "#!/bin/bash if [[ ! -d $SRCROOT ]]; then echo "This script must be run from an Xcode Build Phase" exit 1; fi # Globals Tag= Logfile= CFBundleVersion= CFBundleShortVersionString= function init_logging () { logdir="$HOME/Library/Logs/$PRODUCT_BUNDLE_IDENTIFIER" mkdir -p $logdir Logfile="$logdir/archive_post_actions.log" exec >> $Logfile 2>&1 echo "\n\n\n$(date) Beginning archive post-actions for $CONFIGURATION" } function increment_bundle_version () { srcPlist="$1" PlistBuddy="/usr/libexec/PlistBuddy" CFBundleVersion=`$PlistBuddy -c "Print CFBundleVersion" $srcPlist` CFBundleShortVersionString=`$PlistBuddy -c "Print CFBundleShortVersionString" $srcPlist` Tag="v$CFBundleShortVersionString" # Increment the bundle version for future builds CFBundleVersionNext=$(($CFBundleVersion + 1)) $PlistBuddy -c "Set :CFBundleVersion $CFBundleVersionNext" $srcPlist echo "Updated build number of $srcPlist to $CFBundleVersionNext" # Copy the new version to the settings bundle # settingsPlist="$SRCROOT/$PRODUCT_NAME/Settings.bundle/Root.plist" # $PlistBuddy -c "Set :PreferenceSpecifiers:0:DefaultValue $CFBundleShortVersionString ($CFBundleVersionNext)" $settingsPlist git add $srcPlist >> $Logfile 2>&1 } function commit_and_tag_changes () { cd "$SRCROOT" git commit -m "Auto-commit with archive $Tag" >> $Logfile 2>&1 git tag $Tag >> $Logfile 2>&1 git push >> $Logfile 2>&1 git push --tags >> $Logfile 2>&1 cd - } function merge_to_master () { cd "$SRCROOT" branch=$(git symbolic-ref --short HEAD) git checkout master >> $Logfile 2>&1 git merge "$branch" >> $Logfile 2>&1 git push >> $Logfile 2>&1 git checkout "$branch" >> $Logfile 2>&1 cd - } ## Run init_logging increment_bundle_version "$SRCROOT/$INFOPLIST_FILE" increment_bundle_version "$SRCROOT/WatchApp/Info.plist" commit_and_tag_changes ">
107
107
<EnvironmentBuildable>
108
108
<BuildableReference
109
109
BuildableIdentifier = " primary"
You can’t perform that action at this time.
0 commit comments