[review] gather plist params in one place
This commit is contained in:
parent
68481bc989
commit
5350b948ea
@ -71,9 +71,5 @@ coll = COLLECT(exe,
|
|||||||
app = BUNDLE(coll,
|
app = BUNDLE(coll,
|
||||||
name='qutebrowser.app',
|
name='qutebrowser.app',
|
||||||
icon=icon,
|
icon=icon,
|
||||||
info_plist={
|
|
||||||
'NSHighResolutionCapable': 'True',
|
|
||||||
'NSSupportsAutomaticGraphicsSwitching': 'True',
|
|
||||||
},
|
|
||||||
# https://github.com/pyinstaller/pyinstaller/blob/b78bfe530cdc2904f65ce098bdf2de08c9037abb/PyInstaller/hooks/hook-PyQt5.QtWebEngineWidgets.py#L24
|
# https://github.com/pyinstaller/pyinstaller/blob/b78bfe530cdc2904f65ce098bdf2de08c9037abb/PyInstaller/hooks/hook-PyQt5.QtWebEngineWidgets.py#L24
|
||||||
bundle_identifier='org.qt-project.Qt.QtWebEngineCore')
|
bundle_identifier='org.qt-project.Qt.QtWebEngineCore')
|
||||||
|
@ -124,7 +124,7 @@ def patch_mac_app():
|
|||||||
os.symlink(os.path.join(os.pardir, os.pardir, os.pardir, 'Contents',
|
os.symlink(os.path.join(os.pardir, os.pardir, os.pardir, 'Contents',
|
||||||
'MacOS', lib),
|
'MacOS', lib),
|
||||||
os.path.join(dest, lib))
|
os.path.join(dest, lib))
|
||||||
# Patch Info.plist to declare URLs support
|
# Patch Info.plist - pyinstaller's options are too limiting
|
||||||
plist_path = os.path.join(app_path, 'Contents', 'Info.plist')
|
plist_path = os.path.join(app_path, 'Contents', 'Info.plist')
|
||||||
with open(plist_path, "rb") as f:
|
with open(plist_path, "rb") as f:
|
||||||
plist_data = plistlib.load(f)
|
plist_data = plistlib.load(f)
|
||||||
@ -134,6 +134,8 @@ def patch_mac_app():
|
|||||||
|
|
||||||
|
|
||||||
INFO_PLIST_UPDATES = {
|
INFO_PLIST_UPDATES = {
|
||||||
|
'NSSupportsAutomaticGraphicsSwitching': True,
|
||||||
|
'NSHighResolutionCapable': True,
|
||||||
'CFBundleURLTypes': [{
|
'CFBundleURLTypes': [{
|
||||||
"CFBundleURLName": "http(s) URL",
|
"CFBundleURLName": "http(s) URL",
|
||||||
"CFBundleURLSchemes": ["http", "https"]
|
"CFBundleURLSchemes": ["http", "https"]
|
||||||
|
Loading…
Reference in New Issue
Block a user