Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Add version bump build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Reda Lemeden committed Nov 17, 2015
1 parent a181d34 commit 15301e9
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 4 deletions.
33 changes: 33 additions & 0 deletions Verbena.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@
00175BC41B23BE1900EB3106 /* Frameworks */,
00175BC51B23BE1900EB3106 /* Headers */,
00175BC61B23BE1900EB3106 /* Resources */,
00024DED1BFAA51600976ACA /* Set Version Number */,
);
buildRules = (
);
Expand Down Expand Up @@ -306,6 +307,7 @@
00175BE51B23BF0D00EB3106 /* Frameworks */,
00175BE61B23BF0D00EB3106 /* Headers */,
00175BE71B23BF0D00EB3106 /* Resources */,
00024DEE1BFAA52D00976ACA /* Set Version Number */,
);
buildRules = (
);
Expand Down Expand Up @@ -410,6 +412,37 @@
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
00024DED1BFAA51600976ACA /* 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}\"";
};
00024DEE1BFAA52D00976ACA /* 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 */
00175BC31B23BE1900EB3106 /* Sources */ = {
isa = PBXSourcesBuildPhase;
Expand Down
4 changes: 2 additions & 2 deletions Verbena/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>1.0.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<string>37</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
Expand Down
4 changes: 2 additions & 2 deletions VerbenaMac/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>1.0.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<string>37</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2015 Kaishin &amp; Co. All rights reserved.</string>
<key>NSPrincipalClass</key>
Expand Down

0 comments on commit 15301e9

Please sign in to comment.