Skip to content

Commit

Permalink
Fix release build number bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
dyerc committed Jan 14, 2018
1 parent bbff51d commit b4889df
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
15 changes: 15 additions & 0 deletions Doughnut.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@
5D28D79F73E4F029E1F5DBB6 /* [CP] Check Pods Manifest.lock */,
838257C61F759F6F00DB4FD1 /* Sources */,
838257C71F759F6F00DB4FD1 /* Frameworks */,
83D454AE200BFDD50078CA3D /* Bump Build Number */,
838257C81F759F6F00DB4FD1 /* Resources */,
4811B8B252A5287D2295B6A8 /* [CP] Embed Pods Frameworks */,
D4838B1A99983D51CEADAC8F /* [CP] Copy Pods Resources */,
Expand Down Expand Up @@ -748,6 +749,20 @@
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
83D454AE200BFDD50078CA3D /* Bump Build Number */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Bump Build Number";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "buildNumber=$(/usr/libexec/PlistBuddy -c \"Print CFBundleVersion\" \"${PROJECT_DIR}/${INFOPLIST_FILE}\")\nbuildNumber=$(($buildNumber + 1))\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion $buildNumber\" \"${PROJECT_DIR}/${INFOPLIST_FILE}\"";
};
A3819D0A54A45BF19A833E00 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down
4 changes: 2 additions & 2 deletions Doughnut/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<string>1.0.1</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>3</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSAppTransportSecurity</key>
Expand Down
6 changes: 6 additions & 0 deletions appcast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
<description>Most recent changes with links to updates.</description>
<language>en</language>

<item>
<title>Version 1.0.1</title>
<pubDate>Sun, 14 January 2018 21:12:00 +0000</pubDate>
<enclosure url="https://github.com/CD1212/Doughnut/releases/download/v1.0.1/Doughnut-1.0.1.dmg" sparkle:version="3" sparkle:shortVersionString="1.0.1" length="6352381" type="application/octet-stream" sparkle:dsaSignature="MEQCIGRPAQudu2q5D/xhQXmX4rUtDOua2BppOtmtFU6ZN4ygAiBoSIGL4xCoEDagfHULzVckM3iHYvqTkFcmfvtnXc+iPw==" />
</item>

<item>
<title>Version 1.0.0</title>
<pubDate>Sat, 13 January 2018 20:08:00 +0000</pubDate>
Expand Down

0 comments on commit b4889df

Please sign in to comment.