From d6140424a5c83a7ede76da2638343db4c0c85da9 Mon Sep 17 00:00:00 2001 From: Jon Gilkison Date: Fri, 18 May 2018 17:02:04 +0700 Subject: [PATCH] Auto increment build --- FileWatch.xcodeproj/project.pbxproj | 18 ++++++++++++++++++ Resources/Info.plist | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/FileWatch.xcodeproj/project.pbxproj b/FileWatch.xcodeproj/project.pbxproj index 9b118bf..950181a 100644 --- a/FileWatch.xcodeproj/project.pbxproj +++ b/FileWatch.xcodeproj/project.pbxproj @@ -221,6 +221,7 @@ FFBAF72C20AD6945006895BB /* Sources */, FFBAF72D20AD6945006895BB /* Frameworks */, FFBAF72E20AD6945006895BB /* Resources */, + FFDE796E20AEDA1100505485 /* Increment Build */, ); buildRules = ( ); @@ -285,6 +286,23 @@ }; /* End PBXResourcesBuildPhase section */ +/* Begin PBXShellScriptBuildPhase section */ + FFDE796E20AEDA1100505485 /* Increment Build */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Increment Build"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "buildNumber=$(/usr/libexec/PlistBuddy -c \"Print CFBundleVersion\" \"${INFOPLIST_FILE}\")\nbuildNumber=$(($buildNumber + 1))\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion $buildNumber\" \"${INFOPLIST_FILE}\""; + }; +/* End PBXShellScriptBuildPhase section */ + /* Begin PBXSourcesBuildPhase section */ FFBAF72C20AD6945006895BB /* Sources */ = { isa = PBXSourcesBuildPhase; diff --git a/Resources/Info.plist b/Resources/Info.plist index 78649f0..693632c 100644 --- a/Resources/Info.plist +++ b/Resources/Info.plist @@ -19,7 +19,7 @@ CFBundleShortVersionString 1.0 CFBundleVersion - 1 + 4 LSApplicationCategoryType public.app-category.developer-tools LSMinimumSystemVersion