diff options
author | Matt Holgate <matt@emobix.co.uk> | 2014-07-14 15:38:39 +0100 |
---|---|---|
committer | Matt Holgate <matt@emobix.co.uk> | 2014-07-14 15:38:39 +0100 |
commit | 0beb79258649f97767f7572659a81b588c3357ff (patch) | |
tree | 3adb5686c2f56ae8d77132b790fa3a3fd3c313f9 /platform/ios/MuPDF.xcodeproj/xcshareddata/xcschemes/MuPDF.xcscheme | |
parent | 803470e161539f9013f854188e57505f4878e891 (diff) | |
download | mupdf-0beb79258649f97767f7572659a81b588c3357ff.tar.xz |
Add the ability to hook a post-archive script into the build process.
Used by the Testflight build.
The post-archive step requires nastiness to pass the result of the script
back to the caller via a temporary file. The reason for this is that a bug
in Xcode means that failures from post-archive steps do not get propagated
back to the user who called xcodebuild archive.
Also, update the postbuild script to explicitly invoke bash (so we can
avoid assuming /bin/sh is bash, and to avoid problems where executable
permissions aren't set properly).
Diffstat (limited to 'platform/ios/MuPDF.xcodeproj/xcshareddata/xcschemes/MuPDF.xcscheme')
-rw-r--r-- | platform/ios/MuPDF.xcodeproj/xcshareddata/xcschemes/MuPDF.xcscheme | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/platform/ios/MuPDF.xcodeproj/xcshareddata/xcschemes/MuPDF.xcscheme b/platform/ios/MuPDF.xcodeproj/xcshareddata/xcschemes/MuPDF.xcscheme index ddfd0395..2aa52d65 100644 --- a/platform/ios/MuPDF.xcodeproj/xcshareddata/xcschemes/MuPDF.xcscheme +++ b/platform/ios/MuPDF.xcodeproj/xcshareddata/xcschemes/MuPDF.xcscheme @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <Scheme LastUpgradeVersion = "0510" - version = "1.3"> + version = "1.7"> <BuildAction parallelizeBuildables = "YES" buildImplicitDependencies = "YES"> @@ -82,5 +82,23 @@ <ArchiveAction buildConfiguration = "Release" revealArchiveInOrganizer = "YES"> + <PostActions> + <ExecutionAction + ActionType = "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction"> + <ActionContent + title = "Run Script" + scriptText = "if [ "$COMMAND_LINE_POSTARCHIVE_SCRIPT" != "" ] ; then bash $COMMAND_LINE_POSTARCHIVE_SCRIPT RESULT=$? # Manually pass the result of the script back to the caller, as errors # that occur here do not cause the Archive step to fail. I believe this # is an Xcode bug. if [ "$COMMAND_LINE_POSTARCHIVE_SCRIPT_RESULT_FILE" != "" ] ; then echo $RESULT >$COMMAND_LINE_POSTARCHIVE_SCRIPT_RESULT_FILE fi fi exit 1 "> + <EnvironmentBuildable> + <BuildableReference + BuildableIdentifier = "primary" + BlueprintIdentifier = "968E1E3C1779A54F0050CEA3" + BuildableName = "MuPDF.app" + BlueprintName = "MuPDF" + ReferencedContainer = "container:MuPDF.xcodeproj"> + </BuildableReference> + </EnvironmentBuildable> + </ActionContent> + </ExecutionAction> + </PostActions> </ArchiveAction> </Scheme> |