Build PDFReaderLite V2 executable

This commit is contained in:
2026-06-30 21:00:28 +08:00
parent 272dd08262
commit b6b7e8e05a
2 changed files with 28 additions and 1 deletions
+28 -1
View File
@@ -14,10 +14,37 @@ a = Analysis(
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
excludes=[
"PIL",
"Pillow",
"tkinter",
"numpy",
"PySide6.QtNetwork",
"PySide6.QtOpenGL",
"PySide6.QtPdf",
"PySide6.QtQml",
"PySide6.QtQuick",
"PySide6.QtVirtualKeyboard",
],
noarchive=False,
optimize=0,
)
excluded_binaries = {
"opengl32sw.dll",
"qt6network.dll",
"qt6opengl.dll",
"qt6pdf.dll",
"qt6qml.dll",
"qt6qmlmodels.dll",
"qt6quick.dll",
"qt6virtualkeyboard.dll",
}
a.binaries = [
item for item in a.binaries
if Path(str(item[0])).name.lower() not in excluded_binaries
]
pyz = PYZ(a.pure)
exe = EXE(