feat: add safe native Mentor PDF exporter and tested portable UI

This commit is contained in:
Codex committed 2026-10-09 21:32:31 +08:00
1 parent 10a87d2cee
commit d4928af5b6
33 files changed
+2267 -13

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
import importlib.util
from pathlib import Path
def test_bundle_excludes_foreign_icu_but_keeps_qt_and_crt():
file=Path(__file__).parents[1]/"packaging/bundle_policy.py"
spec=importlib.util.spec_from_file_location("bundle_policy",file)
module=importlib.util.module_from_spec(spec);spec.loader.exec_module(module)
entries=[
("icuuc.dll",r"C:\tools\poppler\icuuc.dll","BINARY"),
("icudt78.dll",r"C:\tools\poppler\icudt78.dll","BINARY"),
(r"PySide6\Qt6Core.dll",r"C:\python\PySide6\Qt6Core.dll","BINARY"),
("VCRUNTIME140.dll",r"C:\python\VCRUNTIME140.dll","BINARY"),
]
filtered=module.filter_binaries(entries)
assert filtered == entries[2:]