Skip to content

Commit e84f472

Browse files
committed
Add build phase run script to remove Wormholy from release builds
1 parent 26688b4 commit e84f472

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash -eu
2+
3+
if [ "${CONFIGURATION}" != "Release" ]; then
4+
echo "info: Skipping Wormholy removal – not a Release build."
5+
exit 0
6+
fi
7+
8+
BUILT_PRODUCTS_DIR=${BUILT_PRODUCTS_DIR:-"$TARGET_BUILD_DIR"}
9+
10+
# Crude way to remove all the Wormholy files from the build.
11+
rm -rf "$BUILT_PRODUCTS_DIR/Wormholy*"

WooCommerce/WooCommerce.xcodeproj/project.pbxproj

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14487,6 +14487,7 @@
1448714487
B5650B1020A4CD7F009702D0 /* Embed Frameworks */,
1448814488
3F1FA85028B60126009E246C /* Embed Foundation Extensions */,
1448914489
26F81B232BE433A4009EC58E /* Embed Watch Content */,
14490+
3F76AD982E0A849700984880 /* Strip Wormholy from Release build */,
1449014491
);
1449114492
buildRules = (
1449214493
);
@@ -15076,6 +15077,24 @@
1507615077
shellScript = "\"$SRCROOT/../Scripts/build-phases/LintAppLocalizedStringsUsage.sh\"\n";
1507715078
showEnvVarsInLog = 0;
1507815079
};
15080+
3F76AD982E0A849700984880 /* Strip Wormholy from Release build */ = {
15081+
isa = PBXShellScriptBuildPhase;
15082+
buildActionMask = 2147483647;
15083+
files = (
15084+
);
15085+
inputFileListPaths = (
15086+
);
15087+
inputPaths = (
15088+
);
15089+
name = "Strip Wormholy from Release build";
15090+
outputFileListPaths = (
15091+
);
15092+
outputPaths = (
15093+
);
15094+
runOnlyForDeploymentPostprocessing = 0;
15095+
shellPath = /bin/sh;
15096+
shellScript = "$SRCROOT/../Scripts/build-phases/strip-wormholy-from-release.sh\n";
15097+
};
1507915098
57CCFFD4249D2A5700825FCF /* SwiftLint */ = {
1508015099
isa = PBXShellScriptBuildPhase;
1508115100
buildActionMask = 2147483647;

0 commit comments

Comments
 (0)