🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
94 lines
2.0 KiB
Python
94 lines
2.0 KiB
Python
# -*- mode: python ; coding: utf-8 -*-
|
|
# PyInstaller spec file for MacroPad Server (macOS)
|
|
|
|
import os
|
|
|
|
a = Analysis(
|
|
['main.py'],
|
|
pathex=[],
|
|
binaries=[],
|
|
datas=[
|
|
('web', 'web'),
|
|
('Macro Pad.png', '.'),
|
|
],
|
|
hiddenimports=[
|
|
# PySide6
|
|
'PySide6.QtCore',
|
|
'PySide6.QtGui',
|
|
'PySide6.QtWidgets',
|
|
# FastAPI and web server
|
|
'fastapi',
|
|
'uvicorn',
|
|
'uvicorn.logging',
|
|
'uvicorn.loops',
|
|
'uvicorn.loops.auto',
|
|
'uvicorn.protocols',
|
|
'uvicorn.protocols.http',
|
|
'uvicorn.protocols.http.auto',
|
|
'uvicorn.protocols.websockets',
|
|
'uvicorn.protocols.websockets.auto',
|
|
'uvicorn.lifespan',
|
|
'uvicorn.lifespan.on',
|
|
'starlette',
|
|
'starlette.routing',
|
|
'starlette.responses',
|
|
'starlette.staticfiles',
|
|
'starlette.websockets',
|
|
'anyio',
|
|
'anyio._backends._asyncio',
|
|
# Pydantic
|
|
'pydantic',
|
|
'pydantic.fields',
|
|
# Other dependencies
|
|
'qrcode',
|
|
'PIL',
|
|
'pyautogui',
|
|
'pyperclip',
|
|
'pystray',
|
|
'netifaces',
|
|
'websockets',
|
|
'multipart',
|
|
],
|
|
hookspath=[],
|
|
hooksconfig={},
|
|
runtime_hooks=[],
|
|
excludes=[],
|
|
noarchive=False,
|
|
optimize=0,
|
|
)
|
|
|
|
pyz = PYZ(a.pure)
|
|
|
|
exe = EXE(
|
|
pyz,
|
|
a.scripts,
|
|
a.binaries,
|
|
a.datas,
|
|
[],
|
|
name='macropad',
|
|
debug=False,
|
|
bootloader_ignore_signals=False,
|
|
strip=False,
|
|
upx=True,
|
|
upx_exclude=[],
|
|
runtime_tmpdir=None,
|
|
console=False,
|
|
disable_windowed_traceback=False,
|
|
argv_emulation=True,
|
|
target_arch=None,
|
|
codesign_identity=None,
|
|
entitlements_file=None,
|
|
)
|
|
|
|
app = BUNDLE(
|
|
exe,
|
|
name='MacroPad Server.app',
|
|
icon='Macro Pad.png',
|
|
bundle_identifier='com.macropad.server',
|
|
info_plist={
|
|
'CFBundleShortVersionString': '0.9.2',
|
|
'CFBundleName': 'MacroPad Server',
|
|
'NSHighResolutionCapable': True,
|
|
},
|
|
)
|