Skip to content

Commit

Permalink
Set build number to git revisions + 1000.
Browse files Browse the repository at this point in the history
I've made a proper mess of this. I didn't realise that CFBundleVersion must be
an integer, so when I set it to the Git revision, I think Sparkle has
interpreted it as an integer. In the case of 1.3.3, the last released version,
the revisions is 423e2d4, which is interpreted as 423. We need to make sure
that later versions are higher than this, so I'm just adding 1000 to add the
build numbers. Sorry.
  • Loading branch information
tomtaylor committed Oct 25, 2014
1 parent cb08625 commit 696c9f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SatelliteEyes.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# From: http://zargony.com/2014/08/10/automatic-versioning-in-xcode-with-git-describe\nset -e\nset -x\nBUILD_NUMBER=`git rev-list HEAD | wc -l | tr -d ' '`\necho \"Updating Info.plist CFBundleVersion to: ${BUILD_NUMBER}\"\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion \\\"${BUILD_NUMBER}\\\"\" \"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}\"\n/usr/bin/plutil -convert binary1 \"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}\"";
shellScript = "# From: http://zargony.com/2014/08/10/automatic-versioning-in-xcode-with-git-describe\nset -e\nset -x\nBUILD_NUMBER=`git rev-list HEAD | wc -l | tr -d ' '`\n((BUILD_NUMBER+=1000))\necho \"Updating Info.plist CFBundleVersion to: ${BUILD_NUMBER}\"\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion \\\"${BUILD_NUMBER}\\\"\" \"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}\"\n/usr/bin/plutil -convert binary1 \"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}\"";
};
/* End PBXShellScriptBuildPhase section */

Expand Down

0 comments on commit 696c9f6

Please sign in to comment.