diff --git a/direct/src/dist/FreezeTool.py b/direct/src/dist/FreezeTool.py index 8748b81c8d..c97d842144 100644 --- a/direct/src/dist/FreezeTool.py +++ b/direct/src/dist/FreezeTool.py @@ -639,6 +639,51 @@ okMissing = [ 'direct.extensions_native.extensions_darwin', ] +# Since around macOS 10.15, Apple's codesigning process has become more strict. +# Appending data to the end of a Mach-O binary is now explicitly forbidden. The +# solution is to embed our own segment into the binary so it can be properly +# signed. +mach_header_64_layout = '