diff options
-rw-r--r-- | dist/installer/mac/entitlements.plist | 10 | ||||
-rw-r--r-- | scripts/common.py | 4 |
2 files changed, 13 insertions, 1 deletions
diff --git a/dist/installer/mac/entitlements.plist b/dist/installer/mac/entitlements.plist new file mode 100644 index 0000000000..0aae7ab39d --- /dev/null +++ b/dist/installer/mac/entitlements.plist @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>com.apple.security.cs.debugger</key> + <true/> + <key>com.apple.security.cs.disable-library-validation</key> + <true/> +</dict> +</plist> diff --git a/scripts/common.py b/scripts/common.py index db97ea3561..e1746f4700 100644 --- a/scripts/common.py +++ b/scripts/common.py @@ -211,5 +211,7 @@ def codesign(app_path): lambda ff: ff.endswith('.dylib')) codesign = codesign_call() if is_mac_platform() and codesign: + entitlements_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'dist', + 'installer', 'mac', 'entitlements.plist') # sign the whole bundle - subprocess.check_call(codesign + ['--deep', app_path]) + subprocess.check_call(codesign + ['--deep', app_path, '--entitlements', entitlements_path]) |