fix(packaging): include WebEngine Python dependencies in frozen app
Core regression / Python core and release configuration (push) Successful in 15s
Core regression / JavaScript syntax (push) Successful in 3s

This commit is contained in:
阿白叔 committed 2026-11-02 15:34:12 +08:00
1 parent c1ad438591
commit 3cec9adc5f
2 files changed
+14 -6

No files matched your search

+6 -6
View File
@@ -68,19 +68,19 @@ a = Analysis(
"pywinauto.controls.uiawrapper",
"PySide6.QtWebEngineCore",
"PySide6.QtWebEngineWidgets",
"PySide6.QtWebChannel",
"PySide6.QtQml",
"PySide6.QtQuick",
"PySide6.QtQuickWidgets",
"PySide6.QtOpenGL",
"PySide6.QtOpenGLWidgets",
],
excludes=[
"PySide6.QtDesigner",
"PySide6.QtMultimedia",
"PySide6.QtMultimediaWidgets",
"PySide6.QtOpenGL",
"PySide6.QtOpenGLWidgets",
"PySide6.QtPdf",
"PySide6.QtPdfWidgets",
"PySide6.QtQml",
"PySide6.QtQuick",
"PySide6.QtQuickWidgets",
"PySide6.QtWebChannel",
],
noarchive=False,
)
@@ -26,3 +26,11 @@ def test_release_spec_includes_all_assets_and_complete_runtime():
assert {'dsh-runtime/node_modules', 'dsh-runtime/task-plugin',
'issue-bootstrap.json', 'PySide6.QtWebEngineCore',
'PySide6.QtWebEngineWidgets'} <= constants
analysis = next(node for node in ast.walk(tree) if isinstance(node, ast.Call)
and isinstance(node.func, ast.Name) and node.func.id == 'Analysis')
options = {arg.arg: ast.literal_eval(arg.value) for arg in analysis.keywords
if arg.arg in {'hiddenimports', 'excludes'}}
web_dependencies = {'PySide6.QtWebChannel', 'PySide6.QtQml', 'PySide6.QtQuick',
'PySide6.QtOpenGL', 'PySide6.QtOpenGLWidgets'}
assert web_dependencies <= set(options['hiddenimports'])
assert web_dependencies.isdisjoint(options['excludes'])