Merge pull request #89 from kbernhagen/macos-add-entitlements

Add entitlements
This commit is contained in:
Joseph Coffland 2020-12-02 13:41:06 -08:00 committed by GitHub
commit 7016206a9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 1 deletions

View File

@ -1333,6 +1333,7 @@ class FAHControl(SingleAppServer):
if not (len(cmd) and len(cmd[0])): cmd = ['FAHViewer']
if sys.platform == 'darwin':
if not cmd[0].endswith('.app'): cmd[0] += '.app'
cmd = ['/usr/bin/open', '-a', cmd[0], '--args'] + cmd[1:]
if fullscreen: cmd.append('--fullscreen')

9
osx/entitlements.plist Normal file
View File

@ -0,0 +1,9 @@
<?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.allow-unsigned-executable-memory</key>
<true/>
</dict>
</plist>

View File

@ -50,7 +50,7 @@ if sys.platform == 'darwin':
argv_emulation = False,
includes = 'cairo, pango, pangocairo, atk, gobject, gio',
iconfile = 'images/FAHControl.icns',
resources = ['/opt/local/share/themes'],
resources = ['/opt/local/share/themes', 'osx/entitlements.plist'],
plist = plist,
)