diff --git a/misc/qutebrowser.spec b/misc/qutebrowser.spec index bcbd67405..c3da992af 100644 --- a/misc/qutebrowser.spec +++ b/misc/qutebrowser.spec @@ -71,9 +71,5 @@ coll = COLLECT(exe, app = BUNDLE(coll, name='qutebrowser.app', icon=icon, - info_plist={ - 'NSHighResolutionCapable': 'True', - 'NSSupportsAutomaticGraphicsSwitching': 'True', - }, # https://github.com/pyinstaller/pyinstaller/blob/b78bfe530cdc2904f65ce098bdf2de08c9037abb/PyInstaller/hooks/hook-PyQt5.QtWebEngineWidgets.py#L24 bundle_identifier='org.qt-project.Qt.QtWebEngineCore') diff --git a/scripts/dev/build_release.py b/scripts/dev/build_release.py index bb6f45a42..c8c291885 100755 --- a/scripts/dev/build_release.py +++ b/scripts/dev/build_release.py @@ -124,7 +124,7 @@ def patch_mac_app(): os.symlink(os.path.join(os.pardir, os.pardir, os.pardir, 'Contents', 'MacOS', 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') with open(plist_path, "rb") as f: plist_data = plistlib.load(f) @@ -134,6 +134,8 @@ def patch_mac_app(): INFO_PLIST_UPDATES = { + 'NSSupportsAutomaticGraphicsSwitching': True, + 'NSHighResolutionCapable': True, 'CFBundleURLTypes': [{ "CFBundleURLName": "http(s) URL", "CFBundleURLSchemes": ["http", "https"]