| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- # =============================================================
- # AudioRecorder.spec
- # Build: BUILD.bat | Output: dist\AudioRecorder.exe
- # =============================================================
- import os
- SRC_DIR = os.path.join(SPECPATH, 'src')
- SERVER_PY = os.path.join(SPECPATH, 'audio_recorder_server.py')
- VER_FILE = os.path.join(SPECPATH, 'build_tools', 'version_info.txt')
- a = Analysis(
- [os.path.join(SRC_DIR, 'launcher.py')],
- pathex=[SRC_DIR],
- binaries=[],
- datas=[(SERVER_PY, '.')],
- hiddenimports=[
- 'flask', 'werkzeug', 'werkzeug.serving', 'werkzeug.debug',
- 'click', 'jinja2', 'jinja2.ext', 'itsdangerous',
- 'sounddevice', 'soundfile', 'numpy', 'numpy.core',
- '_sounddevice_data', 'cffi', '_cffi_backend',
- 'pystray', 'pystray._win32',
- 'lameenc',
- 'PIL', 'PIL.Image', 'PIL.ImageDraw', 'PIL.ImageFont',
- 'json', 'threading', 'socket', 'urllib.request',
- 'webbrowser', 'ctypes',
- ],
- hookspath=[],
- hooksconfig={},
- runtime_hooks=[],
- excludes=['tkinter', '_tkinter', 'matplotlib', 'cv2', 'scipy',
- 'pandas', 'IPython', 'PyQt5', 'wx'],
- noarchive=False,
- )
- pyz = PYZ(a.pure, a.zipped_data)
- exe = EXE(
- pyz,
- a.scripts,
- a.binaries,
- a.datas,
- [],
- name='AudioRecorder',
- debug=False,
- bootloader_ignore_signals=False,
- strip=False,
- upx=False,
- upx_exclude=[],
- runtime_tmpdir=None,
- console=False,
- disable_windowed_traceback=False,
- argv_emulation=False,
- target_arch=None,
- codesign_identity=None,
- entitlements_file=None,
- version=VER_FILE,
- )
|