Files
wow/build.spec
王鹏 33dc741fd9 add 硬件控制模块 (hardware_control.py) 并修复游戏状态扫描区域宽度
- 新增 wyhkm.dll 硬件盒子 COM 接口封装,支持键盘鼠标控制
- 修复 game_state_config.json 中 scan_region_width 过小导致截图越界的问题
- 添加鼠标路径录制器、硬件测试脚本等工具
- 更新多项配置默认值

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-15 12:15:00 +08:00

56 lines
1.3 KiB
Python

# -*- mode: python ; coding: utf-8 -*-
# 魔兽世界自动巡逻/打怪 - PyInstaller 打包配置
# 打包命令: pyinstaller build.spec
block_cipher = None
# 需要随 exe 一起发布的数据文件(运行时会在 exe 同目录或临时目录解出)
added_files = [
('recorder\\*.json', 'recorder'),
('game_state_config.json', '.'),
]
a = Analysis(
['auto_bot_move.py'], # 主入口
pathex=[],
binaries=[],
datas=added_files,
hiddenimports=[
'pygetwindow',
'PIL',
'PIL._tkinter_finder',
],
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,
a.binaries,
a.zipfiles,
a.datas,
[],
name='AutoBotMove',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True, # 保留控制台窗口,便于看状态和 Ctrl+C 停止
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)