Skip to content

Commit 2c613b7

Browse files
committed
修复打包
1 parent a8a3545 commit 2c613b7

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

release.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ build_app() {
201201
--additional-hooks-dir=hooks
202202
--collect-all certifi
203203
--hidden-import mpv
204+
--add-data "plugins/builtin:plugins/builtin"
204205
--add-data "ui:ui"
205206
--add-data "translations:translations"
206207
--add-data "fonts:fonts"

tests/test_release_build.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ def test_release_script_explicitly_collects_platform_input_context_plugins():
4848
assert 'uv run python' in content
4949

5050

51+
def test_release_script_bundles_builtin_plugins_for_linux_appimage():
52+
"""Linux CI build must ship builtin plugins inside the PyInstaller bundle."""
53+
repo_root = Path(__file__).resolve().parents[1]
54+
content = (repo_root / "release.sh").read_text(encoding="utf-8")
55+
56+
assert '--add-data "plugins/builtin:plugins/builtin"' in content
57+
58+
5159
def test_windows_workflow_produces_split_backend_executables():
5260
"""Windows CI must upload separate QT and MPV executables without a portable zip."""
5361
repo_root = Path(__file__).resolve().parents[1]

0 commit comments

Comments
 (0)