summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xTOOLS/osxbundle.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/TOOLS/osxbundle.py b/TOOLS/osxbundle.py
index bd1ab45a58..98699e478b 100755
--- a/TOOLS/osxbundle.py
+++ b/TOOLS/osxbundle.py
@@ -38,6 +38,9 @@ def apply_plist_template(plist_file, version):
for line in fileinput.input(plist_file, inplace=1):
print(line.rstrip().replace('${VERSION}', version))
+def sign_bundle(binary_name):
+ sh('codesign --force --deep -s - ' + bundle_path(binary_name))
+
def bundle_version():
if os.path.exists('VERSION'):
x = open('VERSION')
@@ -75,6 +78,9 @@ def main():
print("> bundling dependencies")
print(sh(" ".join(["TOOLS/dylib-unhell.py", target_binary(binary_name)])))
+ print("> signing bundle with ad-hoc pseudo identity")
+ sign_bundle(binary_name)
+
print("done.")
if __name__ == "__main__":