Skip to content

Commit

Permalink
osxbundle: avoid running codesign with deprecated --deep argument
Browse files Browse the repository at this point in the history
`--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: NixOS/nixpkgs#270691
  • Loading branch information
davidkna committed Jan 31, 2024
1 parent d90a5ff commit 7032b6e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion TOOLS/osxbundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ 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))
for root, _dirs, files in os.walk(target_directory(binary_name)):
for f in files:
sh('codesign --force -s - ' + os.path.join(root, f))
sh('codesign --force -s - ' + bundle_path(binary_name))

def bundle_version():
if os.path.exists('VERSION'):
Expand Down

0 comments on commit 7032b6e

Please sign in to comment.