|
|
@@ -2254,11 +2254,11 @@
|
|
|
buildPhases = (
|
|
|
3811DEF525CA169200A708ED /* Swiftformat */,
|
|
|
388E595425AD948C0019842D /* Sources */,
|
|
|
- B99D8B8E295F34DB00420AB8 /* Run Script */,
|
|
|
388E595525AD948C0019842D /* Frameworks */,
|
|
|
388E595625AD948C0019842D /* Resources */,
|
|
|
3821ECD025DC703C00BC42AD /* Embed Frameworks */,
|
|
|
38E8753D27554D5900975559 /* Embed Watch Content */,
|
|
|
+ B99D8B8E295F34DB00420AB8 /* Run Script */,
|
|
|
);
|
|
|
buildRules = (
|
|
|
);
|
|
|
@@ -2484,7 +2484,7 @@
|
|
|
);
|
|
|
runOnlyForDeploymentPostprocessing = 0;
|
|
|
shellPath = /bin/sh;
|
|
|
- shellScript = "git_version=$(git log -1 --format=\"%h\")\ngit_branch=$(git symbolic-ref --short -q HEAD)\ngit_tag=$(git describe --tags --exact-match 2>/dev/null)\n\ngit_branch_or_tag=\"${git_branch:-${git_tag}}\"\ngit_branch_or_tag_version=\"${git_branch:-${git_tag}} ${git_version}\"\n\ninfo_plist=\"${SRCROOT}/FreeAPS/Resources/Info.plist\"\n\n/usr/libexec/PlistBuddy -c \"Set :BuildBranch '${git_branch_or_tag_version}'\" \"${info_plist}\"\n";
|
|
|
+ shellScript = "#!/bin/sh\n\ngit_version=$(git log -1 --format=\"%h\")\ngit_branch=$(git symbolic-ref --short -q HEAD)\ngit_tag=$(git describe --tags --exact-match 2>/dev/null)\n\ngit_branch_or_tag=\"${git_branch:-${git_tag}}\"\ngit_branch_or_tag_version=\"${git_branch:-${git_tag}} ${git_version}\"\n\ninfo_plist=\"${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}\"\n\n/usr/libexec/PlistBuddy -c \"Set :BuildBranch '${git_branch_or_tag_version}'\" \"${info_plist}\"\n";
|
|
|
};
|
|
|
/* End PBXShellScriptBuildPhase section */
|
|
|
|