mirror of
https://github.com/mpv-player/mpv
synced 2025-03-03 04:37:54 +00:00
osxbundle: avoid running codesign
with deprecated --deep
argument
`--deep` is deprecated as of macos 13.0. It is also not supported by alternative `codesign` implementations like [sigtool](https://github.com/thefloweringash/sigtool). Related: https://github.com/NixOS/nixpkgs/pull/270691
This commit is contained in:
parent
580bc69d0c
commit
68fbdc88d2
@ -40,7 +40,13 @@ def apply_plist_template(plist_file, version):
|
||||
print(line.rstrip().replace('${VERSION}', version))
|
||||
|
||||
def sign_bundle(binary_name):
|
||||
sh('codesign --force --deep -s - ' + bundle_path(binary_name))
|
||||
sign_directories = ['Contents/Frameworks', 'Contents/MacOS']
|
||||
for dir in sign_directories:
|
||||
resolved_dir = os.path.join(bundle_path(binary_name), dir)
|
||||
for root, _dirs, files in os.walk(resolved_dir):
|
||||
for f in files:
|
||||
sh('codesign --force -s - ' + os.path.join(root, f))
|
||||
sh('codesign --force -s - ' + bundle_path(binary_name))
|
||||
|
||||
def bundle_version(src_path):
|
||||
version = 'UNKNOWN'
|
||||
|
Loading…
Reference in New Issue
Block a user