mirror of
https://github.com/zakk4223/CocoaSplit.git
synced 2026-05-15 22:00:34 -06:00
Add run script to set CFBundleVersion to git revision hash. Uses PlistBuddy! HEY BUDDY
This commit is contained in:
parent
6717490d57
commit
57974f0c62
1 changed files with 14 additions and 0 deletions
|
|
@ -602,6 +602,7 @@
|
|||
34AE3C3E164E3EAE0052C95E /* CopyFiles */,
|
||||
3450579D172A4AE30065A452 /* CopyFiles */,
|
||||
3435E39C188BD80A0015CC01 /* CopyFiles */,
|
||||
34BC570418C8667700869744 /* ShellScript */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
|
|
@ -752,6 +753,19 @@
|
|||
shellPath = /bin/sh;
|
||||
shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n";
|
||||
};
|
||||
34BC570418C8667700869744 /* ShellScript */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "GIT_HASH=`git rev-parse --short HEAD`\n\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion $GIT_HASH\" $BUILT_PRODUCTS_DIR/$INFOPLIST_PATH\n";
|
||||
};
|
||||
/* End PBXShellScriptBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue