From 393bf3a1343e7a9f48a12f63dba0e820bca90cdd Mon Sep 17 00:00:00 2001 From: Reda Lemeden Date: Wed, 20 Jan 2016 12:21:45 +0000 Subject: [PATCH] Add version bump script --- Gifu.podspec | 2 +- Gifu.xcodeproj/project.pbxproj | 18 ++++++++++++++++++ Source/Info.plist | 4 ++-- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/Gifu.podspec b/Gifu.podspec index fab5d33..1537938 100644 --- a/Gifu.podspec +++ b/Gifu.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Gifu" - s.version = "1.0.0" + s.version = "1.0.1" s.summary = "Highly performant animated GIF support for iOS " s.homepage = "https://github.com/kaishin/gifu" s.social_media_url = "http://twitter.com/kaishin" diff --git a/Gifu.xcodeproj/project.pbxproj b/Gifu.xcodeproj/project.pbxproj index e36e138..cb65ab7 100644 --- a/Gifu.xcodeproj/project.pbxproj +++ b/Gifu.xcodeproj/project.pbxproj @@ -200,6 +200,7 @@ 00B8C73A1A364DA400C188E7 /* Frameworks */, 00B8C73B1A364DA400C188E7 /* Headers */, 00B8C73C1A364DA400C188E7 /* Resources */, + 003DD00A1C4FB0E600C7E06B /* Set Version Number */, ); buildRules = ( ); @@ -265,6 +266,23 @@ }; /* End PBXResourcesBuildPhase section */ +/* Begin PBXShellScriptBuildPhase section */ + 003DD00A1C4FB0E600C7E06B /* Set Version Number */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Set Version Number"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "GIT_RELEASE_VERSION=$(git describe --tags --always --abbrev=0)\nCOMMITS=$(git rev-list HEAD | wc -l)\nCOMMITS=$(($COMMITS))\n\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion ${COMMITS}\" \"${INFOPLIST_FILE}\"\n/usr/libexec/PlistBuddy -c \"Set :CFBundleShortVersionString ${GIT_RELEASE_VERSION#*v}\" \"${INFOPLIST_FILE}\""; + }; +/* End PBXShellScriptBuildPhase section */ + /* Begin PBXSourcesBuildPhase section */ 009BD1321BBC7F6500FC982B /* Sources */ = { isa = PBXSourcesBuildPhase; diff --git a/Source/Info.plist b/Source/Info.plist index 60b9c00..c5090c0 100644 --- a/Source/Info.plist +++ b/Source/Info.plist @@ -15,11 +15,11 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.0.0 + 1.0.1 CFBundleSignature ???? CFBundleVersion - $(CURRENT_PROJECT_VERSION) + 79 NSPrincipalClass