MCPcopy Create free account
hub / github.com/conda/constructor / sign_standalone_binary

Function sign_standalone_binary

constructor/osxpkg.py:110–125  ·  view source on GitHub ↗
(
    exe_path: Path,
    codesigner: CodeSign,
)

Source from the content-addressed store, hash-verified

108
109
110def sign_standalone_binary(
111 exe_path: Path,
112 codesigner: CodeSign,
113):
114 entitlements = {
115 "com.apple.security.cs.allow-jit": True,
116 "com.apple.security.cs.allow-unsigned-executable-memory": True,
117 "com.apple.security.cs.disable-executable-page-protection": True,
118 "com.apple.security.cs.disable-library-validation": True,
119 "com.apple.security.cs.allow-dyld-environment-variables": True,
120 }
121 codesigner.sign_bundle(exe_path, entitlements=entitlements)
122 internal_dir = exe_path.parent / "_internal"
123 for file in internal_dir.glob("**"):
124 if is_macho_binary(file):
125 codesigner.sign_bundle(file, entitlements=entitlements)
126
127
128def modify_xml(xml_path, info):

Callers 1

createFunction · 0.85

Calls 2

is_macho_binaryFunction · 0.85
sign_bundleMethod · 0.80

Tested by

no test coverage detected