Skip to content

Commit 27a4601

Browse files
committed
Update TestFlight version automatically.
1 parent 0ea32f6 commit 27a4601

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Diffusion.xcodeproj/project.pbxproj

+22
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@
326326
isa = PBXNativeTarget;
327327
buildConfigurationList = F155202F2971093400DC009B /* Build configuration list for PBXNativeTarget "Diffusion-macOS" */;
328328
buildPhases = (
329+
EB7FE72529954BFF009056BD /* ShellScript */,
329330
F155201D2971093300DC009B /* Sources */,
330331
F155201E2971093300DC009B /* Frameworks */,
331332
F155201F2971093300DC009B /* Resources */,
@@ -433,6 +434,27 @@
433434
};
434435
/* End PBXResourcesBuildPhase section */
435436

437+
/* Begin PBXShellScriptBuildPhase section */
438+
EB7FE72529954BFF009056BD /* ShellScript */ = {
439+
isa = PBXShellScriptBuildPhase;
440+
alwaysOutOfDate = 1;
441+
buildActionMask = 12;
442+
files = (
443+
);
444+
inputFileListPaths = (
445+
);
446+
inputPaths = (
447+
);
448+
outputFileListPaths = (
449+
);
450+
outputPaths = (
451+
);
452+
runOnlyForDeploymentPostprocessing = 0;
453+
shellPath = /bin/sh;
454+
shellScript = "if [ \"$CONFIGURATION\" != \"Debug\" ]\nthen \n version=`date +%Y%m%d.%H%M%S`\n CONFIG_FILE=${SRCROOT}/config/common.xcconfig\n sed -e 's/^CURRENT_PROJECT_VERSION.*/CURRENT_PROJECT_VERSION = '\"$version\"'/' ${CONFIG_FILE} > ${CONFIG_FILE}.tmp\n [[ -s ${CONFIG_FILE}.tmp ]] && {\n mv ${CONFIG_FILE}.tmp ${CONFIG_FILE}\n }\nfi\n";
455+
};
456+
/* End PBXShellScriptBuildPhase section */
457+
436458
/* Begin PBXSourcesBuildPhase section */
437459
EBE755C1293E37DD00806B32 /* Sources */ = {
438460
isa = PBXSourcesBuildPhase;

0 commit comments

Comments
 (0)