Installers for all platforms and related fixes #1

Merged
LeoVasanko merged 38 commits from installer into main 2026-09-23 17:41:21 +00:00
3 changed files with 23 additions and 3 deletions
Showing only changes of commit f27bb4e7f3 - Show all commits
+3 -1
View File
@@ -1076,7 +1076,9 @@ def _icon_path() -> str | None:
def _webview_start_kwargs() -> dict[str, str]: 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 {} return {}
+5 -2
View File
@@ -51,9 +51,12 @@ parse-torrent-title = { git = "https://github.com/platelminto/parse-torrent-titl
[project.optional-dependencies] [project.optional-dependencies]
gui = [ gui = [
"pywebview[qt]>=6.2.1; platform_system == 'Linux'", "pywebview[qt]>=6.2.1; platform_system != 'Windows'",
"pywebview>=6.2.1; platform_system != 'Linux'", "pywebview>=6.2.1; platform_system == 'Windows'",
"velopack>=1.2", "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'", "pythonnet>=3.1.0rc0; platform_system == 'Windows' and python_version >= '3.14'",
"pyinstaller>=6.0", "pyinstaller>=6.0",
] ]
+15
View File
@@ -82,6 +82,21 @@ _hiddenimports = [
"tomli_w", "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( a = Analysis(
[mediahive.winmain.__file__], [mediahive.winmain.__file__],
pathex=[], pathex=[],