2026-04-27 09:52:10 +08:00
|
|
|
# PyInstaller spec for the voice confirmation desktop client.
|
|
|
|
|
# Build on the target OS (Windows / macOS / Linux).
|
|
|
|
|
# Usage: uv run --group voice-client-build pyinstaller voice_client.spec
|
|
|
|
|
|
|
|
|
|
from PyInstaller.utils.hooks import collect_all
|
|
|
|
|
|
|
|
|
|
datas, binaries, hiddenimports = collect_all("PySide6")
|
|
|
|
|
|
|
|
|
|
block_cipher = None
|
|
|
|
|
|
|
|
|
|
a = Analysis(
|
|
|
|
|
["voice_confirmation_client/__main__.py"],
|
|
|
|
|
pathex=[],
|
|
|
|
|
binaries=binaries,
|
|
|
|
|
datas=datas,
|
2026-04-27 11:21:16 +08:00
|
|
|
hiddenimports=hiddenimports + ["sounddevice", "numpy", "websocket"],
|
2026-04-27 09:52:10 +08:00
|
|
|
hookspath=[],
|
|
|
|
|
hooksconfig={},
|
|
|
|
|
runtime_hooks=[],
|
|
|
|
|
excludes=[],
|
|
|
|
|
win_no_prefer_redirects=False,
|
|
|
|
|
win_private_assemblies=False,
|
|
|
|
|
cipher=block_cipher,
|
|
|
|
|
noarchive=False,
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
|
|
|
|
|
|
|
|
|
|
exe = EXE(
|
|
|
|
|
pyz,
|
|
|
|
|
a.scripts,
|
|
|
|
|
[],
|
|
|
|
|
exclude_binaries=True,
|
|
|
|
|
name="voice-confirmation-client",
|
|
|
|
|
debug=False,
|
|
|
|
|
bootloader_ignore_signals=False,
|
|
|
|
|
strip=False,
|
|
|
|
|
upx=False,
|
|
|
|
|
console=False,
|
|
|
|
|
disable_windowed_traceback=False,
|
|
|
|
|
argv_emulation=False,
|
|
|
|
|
target_arch=None,
|
|
|
|
|
codesign_identity=None,
|
|
|
|
|
entitlements_file=None,
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
coll = COLLECT(
|
|
|
|
|
exe,
|
|
|
|
|
a.binaries,
|
|
|
|
|
a.zipfiles,
|
|
|
|
|
a.datas,
|
|
|
|
|
strip=False,
|
|
|
|
|
upx=False,
|
|
|
|
|
upx_exclude=[],
|
|
|
|
|
name="voice-confirmation-client",
|
|
|
|
|
)
|