# -*- 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=[ 'pydirectinput', '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, )