Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 8e3a33e

Browse files
committed
sets build version to commit count
1 parent 34fe6a8 commit 8e3a33e

1 file changed

Lines changed: 27 additions & 6 deletions

File tree

FetchInstallerPkg.xcodeproj/project.pbxproj

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@
140140
C636435A2670E1B800301DC8 /* Sources */,
141141
C636435B2670E1B800301DC8 /* Frameworks */,
142142
C636435C2670E1B800301DC8 /* Resources */,
143+
C6B969B82681D0A0005717F1 /* ShellScript */,
143144
);
144145
buildRules = (
145146
);
@@ -195,6 +196,26 @@
195196
};
196197
/* End PBXResourcesBuildPhase section */
197198

199+
/* Begin PBXShellScriptBuildPhase section */
200+
C6B969B82681D0A0005717F1 /* ShellScript */ = {
201+
isa = PBXShellScriptBuildPhase;
202+
buildActionMask = 12;
203+
files = (
204+
);
205+
inputFileListPaths = (
206+
);
207+
inputPaths = (
208+
);
209+
outputFileListPaths = (
210+
);
211+
outputPaths = (
212+
);
213+
runOnlyForDeploymentPostprocessing = 0;
214+
shellPath = /bin/sh;
215+
shellScript = "currentversion=$(xcrun agvtool what-version -terse)\ncommitcount=$(git rev-list --count HEAD)\nif [ $commitcount -ne $currentversion ]; then\n echo \"setting new build version: $commitcount\"\n xcrun agvtool new-version $commitcount\nfi\n";
216+
};
217+
/* End PBXShellScriptBuildPhase section */
218+
198219
/* Begin PBXSourcesBuildPhase section */
199220
C636435A2670E1B800301DC8 /* Sources */ = {
200221
isa = PBXSourcesBuildPhase;
@@ -348,7 +369,7 @@
348369
CODE_SIGN_IDENTITY = "Apple Development";
349370
CODE_SIGN_STYLE = Automatic;
350371
COMBINE_HIDPI_IMAGES = YES;
351-
CURRENT_PROJECT_VERSION = 1;
372+
CURRENT_PROJECT_VERSION = 16;
352373
DEVELOPMENT_ASSET_PATHS = "\"FetchInstallerPkg/Preview Content\"";
353374
DEVELOPMENT_TEAM = JME5BW3F3R;
354375
ENABLE_APP_SANDBOX = YES;
@@ -358,8 +379,8 @@
358379
GENERATE_INFOPLIST_FILE = YES;
359380
INFOPLIST_KEY_CFBundleExecutable = "Download Full Installer";
360381
INFOPLIST_KEY_CFBundleName = "Download Full Installer";
361-
INFOPLIST_KEY_CFBundleVersion = 1;
362-
INFOPLIST_KEY_NSHumanReadableCopyright = "";
382+
INFOPLIST_KEY_CFBundleVersion = $CURRENT_PROJECT_VERSION;
383+
INFOPLIST_KEY_NSHumanReadableCopyright = "©2021 Scripting OS X - Armin Briegel";
363384
LD_RUNPATH_SEARCH_PATHS = (
364385
"$(inherited)",
365386
"@executable_path/../Frameworks",
@@ -383,7 +404,7 @@
383404
CODE_SIGN_IDENTITY = "Apple Development";
384405
CODE_SIGN_STYLE = Automatic;
385406
COMBINE_HIDPI_IMAGES = YES;
386-
CURRENT_PROJECT_VERSION = 1;
407+
CURRENT_PROJECT_VERSION = 16;
387408
DEVELOPMENT_ASSET_PATHS = "\"FetchInstallerPkg/Preview Content\"";
388409
DEVELOPMENT_TEAM = JME5BW3F3R;
389410
ENABLE_APP_SANDBOX = YES;
@@ -393,8 +414,8 @@
393414
GENERATE_INFOPLIST_FILE = YES;
394415
INFOPLIST_KEY_CFBundleExecutable = "Download Full Installer";
395416
INFOPLIST_KEY_CFBundleName = "Download Full Installer";
396-
INFOPLIST_KEY_CFBundleVersion = 1;
397-
INFOPLIST_KEY_NSHumanReadableCopyright = "";
417+
INFOPLIST_KEY_CFBundleVersion = $CURRENT_PROJECT_VERSION;
418+
INFOPLIST_KEY_NSHumanReadableCopyright = "©2021 Scripting OS X - Armin Briegel";
398419
LD_RUNPATH_SEARCH_PATHS = (
399420
"$(inherited)",
400421
"@executable_path/../Frameworks",

0 commit comments

Comments
 (0)