From d5467846f2f7eee9d0e3d14018190af9f981faa8 Mon Sep 17 00:00:00 2001 From: Chris Li Date: Tue, 26 Jul 2016 15:50:01 -0400 Subject: [PATCH] Fix: Bundle version string mismatch --- Kiwix-iOS/Info.plist | 2 +- Kiwix-iOSWidgets/Bookmarks/Info.plist | 4 ++-- Kiwix.xcodeproj/project.pbxproj | 14 ++++++++++++++ 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/Kiwix-iOS/Info.plist b/Kiwix-iOS/Info.plist index 97f5e62c..2c6f9bcf 100644 --- a/Kiwix-iOS/Info.plist +++ b/Kiwix-iOS/Info.plist @@ -49,7 +49,7 @@ CFBundleVersion - 1.7.671 + 1.7.672 ITSAppUsesNonExemptEncryption LSRequiresIPhoneOS diff --git a/Kiwix-iOSWidgets/Bookmarks/Info.plist b/Kiwix-iOSWidgets/Bookmarks/Info.plist index 606a5b2d..428db34c 100644 --- a/Kiwix-iOSWidgets/Bookmarks/Info.plist +++ b/Kiwix-iOSWidgets/Bookmarks/Info.plist @@ -17,11 +17,11 @@ CFBundlePackageType XPC! CFBundleShortVersionString - 1.0 + 1.7 CFBundleSignature ???? CFBundleVersion - 1 + 1.7.672 NSExtension NSExtensionMainStoryboard diff --git a/Kiwix.xcodeproj/project.pbxproj b/Kiwix.xcodeproj/project.pbxproj index 28945702..8953ec72 100644 --- a/Kiwix.xcodeproj/project.pbxproj +++ b/Kiwix.xcodeproj/project.pbxproj @@ -1218,6 +1218,7 @@ 9779C30F1D4575AD0064CC8E /* Sources */, 9779C3101D4575AD0064CC8E /* Frameworks */, 9779C3111D4575AD0064CC8E /* Resources */, + 974F42831D47F61B00F8074C /* ShellScript */, ); buildRules = ( ); @@ -1486,6 +1487,19 @@ shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Kiwix-iOS/Pods-Kiwix-iOS-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; + 974F42831D47F61B00F8074C /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "#!/bin/bash\nbuildNumString=$(/usr/libexec/PlistBuddy -c \"Print CFBundleVersion\" \"$INFOPLIST_FILE\")\nversionNumber=$(/usr/libexec/PlistBuddy -c \"Print CFBundleShortVersionString\" \"$INFOPLIST_FILE\")\nIFS='.'; arr=($buildNumString)\nlastIndex=$((${#arr[@]} - 1))\nbuildNumber=$((${arr[lastIndex]} + 1))\nbuildNumString=\"${arr[0]}.${arr[1]}.$buildNumber\"\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion $buildNumString\" \"$INFOPLIST_FILE\""; + }; 97A4D7E21CF8C318006C731E /* ShellScript */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 12;