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

+15
View File
@@ -0,0 +1,15 @@
"""Build-time DLL policy for the Windows PySide6 6.11 wheel.
Qt imports unversioned ICU symbols from the Windows OS ICU implementation.
A version-suffixed ICU accidentally picked from Poppler on the build PATH
causes WinError 127 even though every Qt DLL has the correct version.
Do not bundle an unrelated ICU provider; use the Windows OS dependency.
"""
from pathlib import PureWindowsPath
def filter_binaries(entries):
def allowed(entry):
name = PureWindowsPath(entry[0]).name.casefold()
return name not in {"icuuc.dll", "icuin.dll"} and not (name.startswith("icudt") and name.endswith(".dll"))
return [entry for entry in entries if allowed(entry)]