Add version bump script

This commit is contained in:
Reda Lemeden 2016-01-20 12:21:45 +00:00
parent c31d2db6ba
commit 393bf3a134
3 changed files with 21 additions and 3 deletions

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = "Gifu" s.name = "Gifu"
s.version = "1.0.0" s.version = "1.0.1"
s.summary = "Highly performant animated GIF support for iOS " s.summary = "Highly performant animated GIF support for iOS "
s.homepage = "https://github.com/kaishin/gifu" s.homepage = "https://github.com/kaishin/gifu"
s.social_media_url = "http://twitter.com/kaishin" s.social_media_url = "http://twitter.com/kaishin"

View File

@ -200,6 +200,7 @@
00B8C73A1A364DA400C188E7 /* Frameworks */, 00B8C73A1A364DA400C188E7 /* Frameworks */,
00B8C73B1A364DA400C188E7 /* Headers */, 00B8C73B1A364DA400C188E7 /* Headers */,
00B8C73C1A364DA400C188E7 /* Resources */, 00B8C73C1A364DA400C188E7 /* Resources */,
003DD00A1C4FB0E600C7E06B /* Set Version Number */,
); );
buildRules = ( buildRules = (
); );
@ -265,6 +266,23 @@
}; };
/* End PBXResourcesBuildPhase section */ /* 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 */ /* Begin PBXSourcesBuildPhase section */
009BD1321BBC7F6500FC982B /* Sources */ = { 009BD1321BBC7F6500FC982B /* Sources */ = {
isa = PBXSourcesBuildPhase; isa = PBXSourcesBuildPhase;

View File

@ -15,11 +15,11 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>FMWK</string> <string>FMWK</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.0.0</string> <string>1.0.1</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string> <string>79</string>
<key>NSPrincipalClass</key> <key>NSPrincipalClass</key>
<string></string> <string></string>
</dict> </dict>