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

Commit

Permalink
Update the CFBundleVersion instead of attempting to add it.
Browse files Browse the repository at this point in the history
  • Loading branch information
eczarny committed Oct 28, 2014
1 parent 04ba593 commit d79b90c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Spectacle.xcodeproj/project.pbxproj
Expand Up @@ -373,7 +373,7 @@
2D1E1AAC147E06AD0021D73D /* Sources */,
2D1E1AAD147E06AD0021D73D /* Frameworks */,
2D1E1AAE147E06AD0021D73D /* Resources */,
2DC25F9D19FF3F93009591A9 /* Add CFBundleVersion */,
2DC25F9D19FF3F93009591A9 /* Update CFBundleVersion */,
F1EA1F8459FB4A1D9574B6AD /* Copy Pods Resources */,
);
buildRules = (
Expand Down Expand Up @@ -442,19 +442,19 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
2DC25F9D19FF3F93009591A9 /* Add CFBundleVersion */ = {
2DC25F9D19FF3F93009591A9 /* Update CFBundleVersion */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Add CFBundleVersion";
name = "Update CFBundleVersion";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# See: http://tgoode.com/2014/06/05/sensible-way-increment-bundle-version-cfbundleversion-xcode/\nbranch=${1:-'master'}\nbuild_number=$(expr $(git rev-list $branch --count) - $(git rev-list HEAD...$branch --count))\necho \"Updating build number to $build_number using branch: $branch\"\n/usr/libexec/PlistBuddy -c \"Add :CFBundleVersion string $build_number\" \"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}\"\n";
shellScript = "# See: http://tgoode.com/2014/06/05/sensible-way-increment-bundle-version-cfbundleversion-xcode/\nbranch=${1:-'master'}\nbuild_number=$(expr $(git rev-list $branch --count) - $(git rev-list HEAD...$branch --count))\necho \"Updating build number to $build_number using branch: $branch\"\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion $build_number\" \"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}\"\n";
};
4333C7B808B243C29E3C2D58 /* Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
Expand Down
2 changes: 2 additions & 0 deletions Spectacle/Resources/Property Lists/Spectacle-Info.plist
Expand Up @@ -20,6 +20,8 @@
<string>0.8.6</string>
<key>CFBundleSignature</key>
<string>ZERO</string>
<key>CFBundleVersion</key>
<string></string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down
1 change: 0 additions & 1 deletion Spectacle/SpectacleWindowPositionCalculator.m
Expand Up @@ -142,7 +142,6 @@ + (CGRect)findThirdForWindowRect: (CGRect)windowRect visibleFrameOfScreen: (CGRe
for (i = 0; i < thirds.count; i++) {
CGRect currentWindowRect = [thirds[i] windowRect];

// are we within this "third" and centred within it? advance to next
if (RectCentredWithinRect(currentWindowRect, windowRect)) {
NSInteger j = i;

Expand Down

0 comments on commit d79b90c

Please sign in to comment.