Xcode versioning complete

This commit is contained in:
2018-09-17 00:28:07 +02:00
parent 0ea64accf3
commit 7793c2d2c4
3 changed files with 54 additions and 9 deletions

View File

@@ -598,18 +598,18 @@
name = ui;
sourceTree = "<group>";
};
AD2286BC214E97460074567E /* sripts */ = {
AD2286BC214E97460074567E /* scripts */ = {
isa = PBXGroup;
children = (
AD2286BE214E975D0074567E /* pre-build.py */,
);
path = sripts;
path = scripts;
sourceTree = "<group>";
};
AD58E0461E107411006ACC15 = {
isa = PBXGroup;
children = (
AD2286BC214E97460074567E /* sripts */,
AD2286BC214E97460074567E /* scripts */,
AD58E0731E3421CB006ACC15 /* libs */,
AD58E0611E17F23D006ACC15 /* data */,
AD58E0511E107411006ACC15 /* src */,
@@ -797,10 +797,11 @@
isa = PBXNativeTarget;
buildConfigurationList = AD0E5CAC1ECC6F2B00C35669 /* Build configuration list for PBXNativeTarget "PanoPainter-OSX" */;
buildPhases = (
ADB86F64214E9D0D004E7CB8 /* Generate Version */,
AD0E5C981ECC6F2B00C35669 /* Sources */,
AD0E5C991ECC6F2B00C35669 /* Frameworks */,
AD0E5C9A1ECC6F2B00C35669 /* Resources */,
AD2286BB214E96E60074567E /* Versioning */,
AD2286BB214E96E60074567E /* Versioning Info.plist */,
AD30D8201F783B5600B6A112 /* CopyFiles */,
);
buildRules = (
@@ -850,9 +851,11 @@
isa = PBXNativeTarget;
buildConfigurationList = ADD7D2851EBF9AE300D5A897 /* Build configuration list for PBXNativeTarget "PanoPainter" */;
buildPhases = (
ADB86F65214EFBCD004E7CB8 /* Generate Version */,
ADD7D2671EBF9AE300D5A897 /* Sources */,
ADD7D2681EBF9AE300D5A897 /* Frameworks */,
ADD7D2691EBF9AE300D5A897 /* Resources */,
ADB86F66214EFC04004E7CB8 /* Versioning Info.plist */,
AD06989C20CC89370010825F /* CopyFiles */,
AD787AEE20D4611100C4712A /* Embed App Extensions */,
);
@@ -958,19 +961,61 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
AD2286BB214E96E60074567E /* Versioning */ = {
AD2286BB214E96E60074567E /* Versioning Info.plist */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = Versioning;
name = "Versioning Info.plist";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Use the commit count as CFBundleVersion\nGIT_COMMIT_COUNT=`git rev-list --count HEAD`\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion ${GIT_COMMIT_COUNT}\" \"${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}\"\n\n## Use the last annotated tag as CFBundleShortVersionString\nGIT_TAG=`git describe --tags --abbrev=0`\n/usr/libexec/PlistBuddy -c \"Set :CFBundleShortVersionString ${GIT_TAG}\" \"${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}\"";
shellScript = "# Use the commit count as CFBundleVersion\nGIT_COMMIT_COUNT=`git rev-list --count HEAD`\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion ${GIT_COMMIT_COUNT}\" \"${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}\"\n\n## Use the last annotated tag as CFBundleShortVersionString\nGIT_TAG=`git describe --tags --abbrev=0`\n/usr/libexec/PlistBuddy -c \"Set :CFBundleShortVersionString ${GIT_TAG}\" \"${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}\"\n";
};
ADB86F64214E9D0D004E7CB8 /* Generate Version */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Generate Version";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "python scripts/pre-build.py $CONFIGURATION";
};
ADB86F65214EFBCD004E7CB8 /* Generate Version */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Generate Version";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "python scripts/pre-build.py $CONFIGURATION";
};
ADB86F66214EFC04004E7CB8 /* Versioning Info.plist */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Versioning Info.plist";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Use the commit count as CFBundleVersion\nGIT_COMMIT_COUNT=`git rev-list --count HEAD`\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion ${GIT_COMMIT_COUNT}\" \"${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}\"\n\n## Use the last annotated tag as CFBundleShortVersionString\nGIT_TAG=`git describe --tags --abbrev=0`\n/usr/libexec/PlistBuddy -c \"Set :CFBundleShortVersionString ${GIT_TAG}\" \"${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}\"\n";
};
/* End PBXShellScriptBuildPhase section */