Browse Source

Add script to automatically increase build number

Thomas Buck 9 years ago
parent
commit
1728f9348b

+ 20
- 2
SerialGamepad.xcodeproj/project.pbxproj View File

@@ -83,6 +83,7 @@
83 83
 			isa = PBXNativeTarget;
84 84
 			buildConfigurationList = E9F5FFBE1C1F5E2B00AA4E3B /* Build configuration list for PBXNativeTarget "SerialGamepad" */;
85 85
 			buildPhases = (
86
+				E9B6A1D31C1F653500DA3C80 /* Increment build number */,
86 87
 				E9F5FFA91C1F5E2B00AA4E3B /* Sources */,
87 88
 				E9F5FFAA1C1F5E2B00AA4E3B /* Frameworks */,
88 89
 				E9F5FFAB1C1F5E2B00AA4E3B /* Resources */,
@@ -140,6 +141,23 @@
140 141
 		};
141 142
 /* End PBXResourcesBuildPhase section */
142 143
 
144
+/* Begin PBXShellScriptBuildPhase section */
145
+		E9B6A1D31C1F653500DA3C80 /* Increment build number */ = {
146
+			isa = PBXShellScriptBuildPhase;
147
+			buildActionMask = 2147483647;
148
+			files = (
149
+			);
150
+			inputPaths = (
151
+			);
152
+			name = "Increment build number";
153
+			outputPaths = (
154
+			);
155
+			runOnlyForDeploymentPostprocessing = 0;
156
+			shellPath = /bin/sh;
157
+			shellScript = "#!/bin/sh\n\nplist=\"${PROJECT_DIR}/${INFOPLIST_FILE}\"\ndir=\"$(dirname \"$plist\")\"\n\n# Only increment the build number if source files have changed\nif [ -n \"$(find \"$dir\" \\! -path \"*xcuserdata*\" \\! -path \"*.git*\" \\! -name .DS_Store \\! -path \"*Website*\" -newer \"$plist\")\" ]; then\nbuildnum=$(/usr/libexec/Plistbuddy -c \"Print CFBundleVersion\" \"$plist\")\nif [ -z \"$buildnum\" ]; then\necho \"No build number in $plist\"\nexit 2\nfi\nbuildnum=$(expr $buildnum + 1)\n/usr/libexec/Plistbuddy -c \"Set CFBundleVersion $buildnum\" \"$plist\"\necho \"Incremented build number to $buildnum\"\nelse\necho \"Not incrementing build number as source files have not changed\"\nfi\n";
158
+		};
159
+/* End PBXShellScriptBuildPhase section */
160
+
143 161
 /* Begin PBXSourcesBuildPhase section */
144 162
 		E9F5FFA91C1F5E2B00AA4E3B /* Sources */ = {
145 163
 			isa = PBXSourcesBuildPhase;
@@ -201,7 +219,7 @@
201 219
 				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
202 220
 				GCC_WARN_UNUSED_FUNCTION = YES;
203 221
 				GCC_WARN_UNUSED_VARIABLE = YES;
204
-				MACOSX_DEPLOYMENT_TARGET = 10.10;
222
+				MACOSX_DEPLOYMENT_TARGET = 10.8;
205 223
 				MTL_ENABLE_DEBUG_INFO = YES;
206 224
 				ONLY_ACTIVE_ARCH = YES;
207 225
 				SDKROOT = macosx;
@@ -238,7 +256,7 @@
238 256
 				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
239 257
 				GCC_WARN_UNUSED_FUNCTION = YES;
240 258
 				GCC_WARN_UNUSED_VARIABLE = YES;
241
-				MACOSX_DEPLOYMENT_TARGET = 10.10;
259
+				MACOSX_DEPLOYMENT_TARGET = 10.8;
242 260
 				MTL_ENABLE_DEBUG_INFO = NO;
243 261
 				SDKROOT = macosx;
244 262
 			};

BIN
SerialGamepad.xcodeproj/project.xcworkspace/xcuserdata/thomas.xcuserdatad/UserInterfaceState.xcuserstate View File


+ 1
- 1
SerialGamepad/Info.plist View File

@@ -21,7 +21,7 @@
21 21
 	<key>CFBundleSignature</key>
22 22
 	<string>????</string>
23 23
 	<key>CFBundleVersion</key>
24
-	<string>1</string>
24
+	<string>2</string>
25 25
 	<key>LSApplicationCategoryType</key>
26 26
 	<string>public.app-category.utilities</string>
27 27
 	<key>LSMinimumSystemVersion</key>

Loading…
Cancel
Save