Revert "macOS: WKWebView system backend (variant B)"

This reverts commit 5b40e306d1.
This commit is contained in:
2026-09-23 16:56:50 +00:00
parent 5b40e306d1
commit f27bb4e7f3
3 changed files with 23 additions and 3 deletions
+3 -1
View File
@@ -1076,7 +1076,9 @@ def _icon_path() -> str | None:
def _webview_start_kwargs() -> dict[str, str]:
"""Return platform-specific pywebview startup kwargs (none: default backend)."""
"""Return platform-specific pywebview startup kwargs."""
if sys.platform == "darwin":
return {"gui": "qt"}
return {}
+5 -2
View File
@@ -51,9 +51,12 @@ parse-torrent-title = { git = "https://github.com/platelminto/parse-torrent-titl
[project.optional-dependencies]
gui = [
"pywebview[qt]>=6.2.1; platform_system == 'Linux'",
"pywebview>=6.2.1; platform_system != 'Linux'",
"pywebview[qt]>=6.2.1; platform_system != 'Windows'",
"pywebview>=6.2.1; platform_system == 'Windows'",
"velopack>=1.2",
"qtpy>=2.4.1; platform_system == 'Darwin'",
# macOS Qt backend (bundled modern Chromium); PyQt6-WebEngine pulls PyQt6
"PyQt6-WebEngine>=6.7.0; platform_system == 'Darwin'",
"pythonnet>=3.1.0rc0; platform_system == 'Windows' and python_version >= '3.14'",
"pyinstaller>=6.0",
]
+15
View File
@@ -82,6 +82,21 @@ _hiddenimports = [
"tomli_w",
]
if sys.platform == "darwin":
_hiddenimports.extend(
[
# pywebview Qt backend selected dynamically via webview.start(gui="qt")
"webview.platforms.qt",
"qtpy",
"PyQt6",
"PyQt6.QtCore",
"PyQt6.QtGui",
"PyQt6.QtWidgets",
"PyQt6.QtWebEngineCore",
"PyQt6.QtWebEngineWidgets",
]
)
a = Analysis(
[mediahive.winmain.__file__],
pathex=[],