This file contains 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
#!/usr/bin/env bash | |
set -e | |
# Resigns an iOS app with a given provisioning profile, distribution certificate, and, optionally, a new bundle identifier. | |
# This script expects to be invoked with at least three arguments. | |
# $1 is expected to be the path of the .ipa to be resigned | |
# $2 is expected to be the path of the .mobileprovision to resign $1 with | |
# $3 is expected to be the name of the distribution certificate in the Keychain to resign $1 with | |
# $4 is optional. If included, this will be the new bundle identifier of the resigned app. If not included, the original bundle identifier will be used. |
This file contains 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
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion git_count" "${PRODUCT_SETTINGS_PATH}" | |
echo "Cleared build number in ${PRODUCT_SETTINGS_PATH}" |
This file contains 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
git=`sh /etc/profile; which git` | |
branch_name=`$git symbolic-ref HEAD | sed -e 's,.*/\\(.*\\),\\1,'` | |
git_count=`$git rev-list $branch_name |wc -l | sed 's/^ *//;s/ *$//'` | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $git_count" "${PRODUCT_SETTINGS_PATH}" | |
echo "Updated build number in ${PRODUCT_SETTINGS_PATH} to $git_count from $branch_name" |
This file contains 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
{ | |
"editor.tabSize": 2, | |
"editor.scrollBeyondLastLine": false, | |
"diffEditor.ignoreTrimWhitespace": false, | |
"workbench.colorTheme": "Default Light+", | |
"workbench.panel.location": "bottom", | |
"editor.minimap.enabled": false, | |
"terminal.integrated.cursorBlinking": true, | |
"workbench.editor.enablePreview": false, | |
"workbench.editor.enablePreviewFromQuickOpen": false, |