(
exe_path: Path,
codesigner: CodeSign,
)
| 108 | |
| 109 | |
| 110 | def 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 | |
| 128 | def modify_xml(xml_path, info): |
no test coverage detected