1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 13:58:49 +00:00

No Issue - Fix building on MacOS Big Sur. The python binary copied reports a valid signature on Big Sur and thus codesign fails. Add the -f option so it overwrites the supposedly valid signature. Other versions are either already unsigned or the install_name_tool invalidates the signature.

This commit is contained in:
Brian Smith
2022-08-29 18:22:25 -05:00
committed by roytam1
parent 59cf6bd808
commit 501ed1ab13
+1 -1
View File
@@ -1346,7 +1346,7 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear, sy
raise
# Resign the executable, since install_name_tool invalidates the signature
call_subprocess(["codesign", "-s", "-", py_executable])
call_subprocess(["codesign", "-fs", "-", py_executable])
if not is_win:
# Ensure that 'python', 'pythonX' and 'pythonX.Y' all exist