macOS: WKWebView system backend (variant B)
release / gui-build (linux, bash) (push) Successful in 45s
release / gui-build (windows, cmd) (push) Successful in 1m14s
release / gui-build (macos, bash) (push) Successful in 55s

Default pywebview backend on macOS, no bundled Qt/Chromium — much
smaller installer and updates.
This commit is contained in:
2026-09-23 03:52:40 +00:00
parent aea73ccd36
commit 5b40e306d1
3 changed files with 3 additions and 23 deletions
+1 -3
View File
@@ -1076,9 +1076,7 @@ def _icon_path() -> str | None:
def _webview_start_kwargs() -> dict[str, str]:
"""Return platform-specific pywebview startup kwargs."""
if sys.platform == "darwin":
return {"gui": "qt"}
"""Return platform-specific pywebview startup kwargs (none: default backend)."""
return {}
+2 -5
View File
@@ -51,12 +51,9 @@ parse-torrent-title = { git = "https://github.com/platelminto/parse-torrent-titl
[project.optional-dependencies]
gui = [
"pywebview[qt]>=6.2.1; platform_system != 'Windows'",
"pywebview>=6.2.1; platform_system == 'Windows'",
"pywebview[qt]>=6.2.1; platform_system == 'Linux'",
"pywebview>=6.2.1; platform_system != 'Linux'",
"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,21 +82,6 @@ _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=[],