Browse Source

Add script to automatically increase build number

Thomas Buck 8 years ago
parent
commit
1728f9348b

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

83
 			isa = PBXNativeTarget;
83
 			isa = PBXNativeTarget;
84
 			buildConfigurationList = E9F5FFBE1C1F5E2B00AA4E3B /* Build configuration list for PBXNativeTarget "SerialGamepad" */;
84
 			buildConfigurationList = E9F5FFBE1C1F5E2B00AA4E3B /* Build configuration list for PBXNativeTarget "SerialGamepad" */;
85
 			buildPhases = (
85
 			buildPhases = (
86
+				E9B6A1D31C1F653500DA3C80 /* Increment build number */,
86
 				E9F5FFA91C1F5E2B00AA4E3B /* Sources */,
87
 				E9F5FFA91C1F5E2B00AA4E3B /* Sources */,
87
 				E9F5FFAA1C1F5E2B00AA4E3B /* Frameworks */,
88
 				E9F5FFAA1C1F5E2B00AA4E3B /* Frameworks */,
88
 				E9F5FFAB1C1F5E2B00AA4E3B /* Resources */,
89
 				E9F5FFAB1C1F5E2B00AA4E3B /* Resources */,
140
 		};
141
 		};
141
 /* End PBXResourcesBuildPhase section */
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
 /* Begin PBXSourcesBuildPhase section */
161
 /* Begin PBXSourcesBuildPhase section */
144
 		E9F5FFA91C1F5E2B00AA4E3B /* Sources */ = {
162
 		E9F5FFA91C1F5E2B00AA4E3B /* Sources */ = {
145
 			isa = PBXSourcesBuildPhase;
163
 			isa = PBXSourcesBuildPhase;
201
 				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
219
 				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
202
 				GCC_WARN_UNUSED_FUNCTION = YES;
220
 				GCC_WARN_UNUSED_FUNCTION = YES;
203
 				GCC_WARN_UNUSED_VARIABLE = YES;
221
 				GCC_WARN_UNUSED_VARIABLE = YES;
204
-				MACOSX_DEPLOYMENT_TARGET = 10.10;
222
+				MACOSX_DEPLOYMENT_TARGET = 10.8;
205
 				MTL_ENABLE_DEBUG_INFO = YES;
223
 				MTL_ENABLE_DEBUG_INFO = YES;
206
 				ONLY_ACTIVE_ARCH = YES;
224
 				ONLY_ACTIVE_ARCH = YES;
207
 				SDKROOT = macosx;
225
 				SDKROOT = macosx;
238
 				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
256
 				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
239
 				GCC_WARN_UNUSED_FUNCTION = YES;
257
 				GCC_WARN_UNUSED_FUNCTION = YES;
240
 				GCC_WARN_UNUSED_VARIABLE = YES;
258
 				GCC_WARN_UNUSED_VARIABLE = YES;
241
-				MACOSX_DEPLOYMENT_TARGET = 10.10;
259
+				MACOSX_DEPLOYMENT_TARGET = 10.8;
242
 				MTL_ENABLE_DEBUG_INFO = NO;
260
 				MTL_ENABLE_DEBUG_INFO = NO;
243
 				SDKROOT = macosx;
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
 	<key>CFBundleSignature</key>
21
 	<key>CFBundleSignature</key>
22
 	<string>????</string>
22
 	<string>????</string>
23
 	<key>CFBundleVersion</key>
23
 	<key>CFBundleVersion</key>
24
-	<string>1</string>
24
+	<string>2</string>
25
 	<key>LSApplicationCategoryType</key>
25
 	<key>LSApplicationCategoryType</key>
26
 	<string>public.app-category.utilities</string>
26
 	<string>public.app-category.utilities</string>
27
 	<key>LSMinimumSystemVersion</key>
27
 	<key>LSMinimumSystemVersion</key>

Loading…
Cancel
Save