forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrules_apple.patch
More file actions
19 lines (19 loc) · 895 Bytes
/
rules_apple.patch
File metadata and controls
19 lines (19 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/tools/codesigningtool/codesigningtool.py b/tools/codesigningtool/codesigningtool.py
index 41091dd9..e8f7f7f7 100644
--- a/tools/codesigningtool/codesigningtool.py
+++ b/tools/codesigningtool/codesigningtool.py
@@ -80,6 +80,14 @@ def invoke_codesign(*, codesign_path, identity, entitlements, force_signing,
# Just like Xcode, ensure CODESIGN_ALLOCATE is set to point to the correct
# version.
custom_env = {"CODESIGN_ALLOCATE": _find_codesign_allocate()}
+
+ if force_signing:
+ execute.execute_and_filter_output(
+ [codesign_path, "--remove-signature", full_path_to_sign],
+ custom_env=custom_env,
+ raise_on_failure=False
+ )
+
_, stdout, stderr = execute.execute_and_filter_output(cmd,
custom_env=custom_env,
raise_on_failure=True)