All checks were successful
Build Windows EXE / build (push) Successful in 50s
Using datas to include modules/ caused stdlib imports (json etc.) to fail at runtime. Adding modules/ to pathex lets PyInstaller properly analyse and compile them into the bundle alongside the rest of the stdlib. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
45 lines
877 B
Python
45 lines
877 B
Python
# PyInstaller spec for es24n_conf Windows .exe
|
|
# Build with: pyinstaller es24n_conf.spec
|
|
|
|
import os
|
|
from PyInstaller.building.build_main import Analysis, PYZ, EXE
|
|
|
|
modules_dir = os.path.join(os.path.dirname(os.path.abspath(SPEC)), "modules")
|
|
|
|
a = Analysis(
|
|
["es24n_conf.py"],
|
|
pathex=[modules_dir],
|
|
binaries=[],
|
|
datas=[],
|
|
hiddenimports=[
|
|
"serial",
|
|
"serial.tools",
|
|
"serial.tools.list_ports",
|
|
],
|
|
hookspath=[],
|
|
hooksconfig={},
|
|
runtime_hooks=[],
|
|
excludes=[],
|
|
noarchive=False,
|
|
)
|
|
|
|
pyz = PYZ(a.pure)
|
|
|
|
exe = EXE(
|
|
pyz,
|
|
a.scripts,
|
|
a.binaries,
|
|
a.datas,
|
|
[],
|
|
name="es24n_conf",
|
|
debug=False,
|
|
bootloader_ignore_signals=False,
|
|
strip=False,
|
|
upx=True,
|
|
console=True,
|
|
disable_windowed_traceback=False,
|
|
target_arch=None,
|
|
codesign_identity=None,
|
|
entitlements_file=None,
|
|
)
|