mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
makewheel: Re-sign arm64 macOS binaries after removing signature
Fixes #1123
This commit is contained in:
parent
5cadd86d1e
commit
576c25b3ea
@ -443,9 +443,14 @@ class WheelFile(object):
|
|||||||
subprocess.call(["install_name_tool", "-change", dep, new_dep, temp.name])
|
subprocess.call(["install_name_tool", "-change", dep, new_dep, temp.name])
|
||||||
remove_signature = True
|
remove_signature = True
|
||||||
|
|
||||||
# Remove the codesign signature if we modified the library.
|
# Replace the codesign signature if we modified the library.
|
||||||
if remove_signature:
|
if remove_signature:
|
||||||
|
if self.platform.endswith("_arm64"):
|
||||||
|
subprocess.call(["codesign", "-f", "-s", "-", temp.name])
|
||||||
|
else:
|
||||||
subprocess.call(["codesign", "--remove-signature", temp.name])
|
subprocess.call(["codesign", "--remove-signature", temp.name])
|
||||||
|
if self.platform.endswith("_universal2"):
|
||||||
|
subprocess.call(["codesign", "-a", "arm64", "-s", "-", temp.name])
|
||||||
else:
|
else:
|
||||||
# On other unixes, we just add dependencies normally.
|
# On other unixes, we just add dependencies normally.
|
||||||
for dep in deps:
|
for dep in deps:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user