Skip to content

Commit

Permalink
Adding deep option to signing to specific part
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojciech Potrzebowski committed Jan 17, 2024
1 parent 575e1a4 commit 4c3b8fa
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions build_tools/code_sign_osx.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,21 @@
)

sign_command = ['codesign', '--timestamp', '--options=runtime', '--verify', '--verbose=4', '--force',
'--sign', '--deep', 'Developer ID Application: European Spallation Source Eric (W2AG9MPZ43)']
'--sign', 'Developer ID Application: European Spallation Source Eric (W2AG9MPZ43)']

sign_deep_command = ['codesign', '--timestamp', '--deep', '--options=runtime', '--verify', '--verbose=4', '--force',
'--sign', 'Developer ID Application: European Spallation Source Eric (W2AG9MPZ43)']

#TODO: Check if it is necesarry to do it per file (one long list maybe enough)
for sfile in itertools.chain(so_list, dylib_list,
dylib_list_resources,
zmq_dylib_list_resources,
pyside_libs):
zmq_dylib_list_resources):
sign_command.append(sfile)
subprocess.check_call(sign_command)
sign_command.pop()


for sfile in itertools.chain(pyside_libs):
sign_deep_command.append(sfile)
subprocess.check_call(sign_deep_command)
sign_deep_command.pop()

0 comments on commit 4c3b8fa

Please sign in to comment.