diff --git a/mediahive/winmain.py b/mediahive/winmain.py index 9b0d55e..c05fb41 100644 --- a/mediahive/winmain.py +++ b/mediahive/winmain.py @@ -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 {} diff --git a/pyproject.toml b/pyproject.toml index 6744a9a..5b2f876 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", ] diff --git a/scripts/MediaHive.spec b/scripts/MediaHive.spec index 01bc923..d5db9e3 100644 --- a/scripts/MediaHive.spec +++ b/scripts/MediaHive.spec @@ -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=[],