Created
April 2, 2017 03:08
-
-
Save armcknight/63b8c731215402b52908dd5ad9f8f1a6 to your computer and use it in GitHub Desktop.
Xcode app target icon tagging logic
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
XCODE_ICON_TAGGER_SCRIPT_MODE="$1" | |
function invoke_tagger() { | |
XCODE_ICON_TAGGER_TOOL_MODE="$1" | |
OPTIONAL_CUSTOM_ICON_TAG_TEXT="$2" | |
sh ${SRCROOT}/Vendor/XcodeIconTagger/tagIcons.sh \ | |
$XCODE_ICON_TAGGER_TOOL_MODE \ | |
${SRCROOT}/Trgnmtry/Assets.xcassets/AppIcon.appiconset \ | |
$OPTIONAL_CUSTOM_ICON_TAG_TEXT | |
} | |
if [[ $XCODE_ICON_TAGGER_SCRIPT_MODE = "tag" ]]; then | |
if [[ "$TARGET_NAME" = "Trgnmtry Touches" ]]; then | |
invoke_tagger "custom" "Touches" | |
else | |
if [[ $CONFIGURATION = "Beta" ]]; then | |
invoke_tagger "version" | |
elif [[ $CONFIGURATION = "Debug" ]]; then | |
invoke_tagger "commit" | |
fi | |
fi | |
else | |
invoke_tagger "cleanup" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment