mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-24 21:01:59 +00:00
build script: code sign on executable outside of application bundle
This commit is contained in:
parent
a6ff02d531
commit
ba0e03d074
1 changed files with 4 additions and 5 deletions
9
build.py
9
build.py
|
@ -1917,11 +1917,10 @@ class Builder(object):
|
|||
args += ['-create', '-output', dst_file]
|
||||
subprocess.check_call(args)
|
||||
|
||||
# TODO: check if ad-hoc code signing is really needed
|
||||
# See https://github.com/Homebrew/brew/commit/e945b1c42ab44feb1c6814f47cc833d76b1a921c
|
||||
# if is_executable:
|
||||
# args = ('codesign', '--sign', '-', dst_file)
|
||||
# subprocess.check_call(args)
|
||||
# Apply ad-hoc code signing on executable files outside of application bundles
|
||||
if is_executable and '.app/Contents/' not in src.path:
|
||||
args = ('codesign', '--sign', '-', dst_file)
|
||||
subprocess.check_call(args)
|
||||
else:
|
||||
if not Builder._compare_files(src_sub_paths):
|
||||
print(f'WARNING: Source files for {dst_path + os.sep + src.name} don\'t match')
|
||||
|
|
Loading…
Reference in a new issue