summaryrefslogtreecommitdiffstats
path: root/TOOLS/osxbundle.py
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2024-02-22 19:38:46 +0100
committerder richter <der.richter@gmx.de>2024-02-24 20:04:16 +0100
commit56b1078bfd46c1ff8c456050c8198016009837a0 (patch)
treeb2e4d1a7c1b76f0ef602c4264b72202c38e7f06a /TOOLS/osxbundle.py
parent00f1743ae2fca1c3381046176ab495f846831017 (diff)
downloadmpv-56b1078bfd46c1ff8c456050c8198016009837a0.tar.bz2
mpv-56b1078bfd46c1ff8c456050c8198016009837a0.tar.xz
osxbundle: use dylib script directly instead of in a subprocess
before errors and outputs where ignored from the subscript and the main script didn't fail nor did it output anything. with this change the script properly outputs everything to stdout and stderr. in the case the dylib script fails the whole script fails now. the main function in dylib_unhell was kept since it can still be used individually without the oscbundle script. the script had to be renamed with an underscore to make it importable.
Diffstat (limited to 'TOOLS/osxbundle.py')
-rwxr-xr-xTOOLS/osxbundle.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/TOOLS/osxbundle.py b/TOOLS/osxbundle.py
index 1c769a06ab..1a9cfb4a6e 100755
--- a/TOOLS/osxbundle.py
+++ b/TOOLS/osxbundle.py
@@ -3,6 +3,7 @@ import os
import shutil
import sys
import fileinput
+import dylib_unhell
from optparse import OptionParser
def sh(command):
@@ -77,7 +78,7 @@ def main():
if options.deps:
print("> bundling dependencies")
- print(sh(" ".join([os.path.join(src_path, "TOOLS/dylib-unhell.py"), target_binary(binary_name)])))
+ dylib_unhell.process(target_binary(binary_name))
print("> signing bundle with ad-hoc pseudo identity")
sign_bundle(binary_name)