diff --git a/scripts/pyinstaller/dleapp.spec b/scripts/pyinstaller/dleapp.spec index 21b1c9a..2419510 100755 --- a/scripts/pyinstaller/dleapp.spec +++ b/scripts/pyinstaller/dleapp.spec @@ -12,6 +12,15 @@ a = Analysis(['..\\..\\dleapp.py'], binaries=[], datas=[('..\\', '.\\scripts')], hiddenimports=[ + # Stdlib that only artifacts import. Artifacts are bundled as data + # files and imported from disk at runtime, so PyInstaller's + # import-graph analysis never sees these, and it prunes stdlib it + # cannot see used (mailbox below is the same case, added earlier). + 'base64', + 'email.utils', + 'plistlib', + 'struct', + 'xml.etree.ElementTree', 'bencoding', 'fitz', 'ijson', diff --git a/scripts/pyinstaller/dleappGUI.spec b/scripts/pyinstaller/dleappGUI.spec index 04a714b..4a2816b 100755 --- a/scripts/pyinstaller/dleappGUI.spec +++ b/scripts/pyinstaller/dleappGUI.spec @@ -12,6 +12,15 @@ a = Analysis(['..\\..\\dleappGUI.py'], binaries=[], datas=[('..\\', '.\\scripts'), ('..\\..\\assets', '.\\assets')], hiddenimports=[ + # Stdlib that only artifacts import. Artifacts are bundled as data + # files and imported from disk at runtime, so PyInstaller's + # import-graph analysis never sees these, and it prunes stdlib it + # cannot see used (mailbox below is the same case, added earlier). + 'base64', + 'email.utils', + 'plistlib', + 'struct', + 'xml.etree.ElementTree', 'bencoding', 'fitz', 'ijson', diff --git a/scripts/pyinstaller/dleappGUI_macOS.spec b/scripts/pyinstaller/dleappGUI_macOS.spec index ae29b4e..567202f 100755 --- a/scripts/pyinstaller/dleappGUI_macOS.spec +++ b/scripts/pyinstaller/dleappGUI_macOS.spec @@ -11,6 +11,15 @@ a = Analysis( binaries=[], datas=[('../', 'scripts'), ('../../assets', 'assets')], hiddenimports=[ + # Stdlib that only artifacts import. Artifacts are bundled as data + # files and imported from disk at runtime, so PyInstaller's + # import-graph analysis never sees these, and it prunes stdlib it + # cannot see used (mailbox below is the same case, added earlier). + 'base64', + 'email.utils', + 'plistlib', + 'struct', + 'xml.etree.ElementTree', 'bencoding', 'fitz', 'ijson', diff --git a/scripts/pyinstaller/dleapp_macOS.spec b/scripts/pyinstaller/dleapp_macOS.spec index ca06c4e..73ef0b6 100644 --- a/scripts/pyinstaller/dleapp_macOS.spec +++ b/scripts/pyinstaller/dleapp_macOS.spec @@ -11,6 +11,15 @@ a = Analysis( binaries=[], datas=[('../', 'scripts')], hiddenimports=[ + # Stdlib that only artifacts import. Artifacts are bundled as data + # files and imported from disk at runtime, so PyInstaller's + # import-graph analysis never sees these, and it prunes stdlib it + # cannot see used (mailbox below is the same case, added earlier). + 'base64', + 'email.utils', + 'plistlib', + 'struct', + 'xml.etree.ElementTree', 'bencoding', 'fitz', 'ijson',