Skip to content

Commit

Permalink
mpv: update Darwin patch
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonTorres committed Apr 19, 2024
1 parent dd753af commit 7e08e28
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions pkgs/applications/video/mpv/darwin-sigtool-no-deep.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
diff --git a/TOOLS/osxbundle.py b/TOOLS/osxbundle.py
index 98699e478b..d02ecf610e 100755
--- a/TOOLS/osxbundle.py
+++ b/TOOLS/osxbundle.py
@@ -39,7 +39,7 @@ def apply_plist_template(plist_file, version):
print(line.rstrip().replace('${VERSION}', version))
diff -Naur source-old/TOOLS/osxbundle.py source-new/TOOLS/osxbundle.py
--- source-old/TOOLS/osxbundle.py 1969-12-31 21:00:01.000000000 -0300
+++ source-new/TOOLS/osxbundle.py 2024-04-18 23:30:17.900376262 -0300
@@ -42,8 +42,8 @@
resolved_dir = os.path.join(bundle_path(binary_name), dir)
for root, _dirs, files in os.walk(resolved_dir):
for f in files:
- subprocess.run(['codesign', '--force', '-s', '-', os.path.join(root, f)])
- subprocess.run(['codesign', '--force', '-s', '-', bundle_path(binary_name)])
+ subprocess.run(['rcodesign', 'sign', os.path.join(root, f)])
+ subprocess.run(['rcodesign', 'sign', bundle_path(binary_name)])

def sign_bundle(binary_name):
- sh('codesign --force --deep -s - ' + bundle_path(binary_name))
+ sh('rcodesign sign ' + bundle_path(binary_name))

def bundle_version():
if os.path.exists('VERSION'):
def bundle_version(src_path):
version = 'UNKNOWN'

0 comments on commit 7e08e28

Please sign in to comment.