# -*- mode: python ; coding: utf-8 -*- # 客户端 GUI 打包配置(单文件) # 用法: 在项目根目录 (boss_dp) 执行: pyinstaller --clean build_client.spec import os _spec_dir = os.path.dirname(os.path.abspath(SPECPATH)) _run_client = os.path.join(_spec_dir, 'run_client.py') if not os.path.isfile(_run_client): _spec_dir = os.getcwd() _run_client = os.path.join(_spec_dir, 'run_client.py') block_cipher = None a = Analysis( [_run_client], pathex=[_spec_dir], binaries=[], datas=[], hiddenimports=[ 'client_gui', 'client_gui.main', 'client_gui.config_store', 'worker', 'worker.main', 'worker.ws_client', 'worker.bit_browser', 'worker.browser_control', 'worker.config', 'worker.tasks', 'worker.tasks.registry', 'worker.tasks.base', 'worker.tasks.boss_recruit', 'worker.tasks.check_login', 'tunnel', 'tunnel.client', 'tunnel.protocol', 'common', 'common.protocol', 'PyQt5', 'PyQt5.QtCore', 'PyQt5.QtWidgets', 'PyQt5.QtGui', ], 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, [], exclude_binaries=False, name='BOSS直聘Worker客户端', debug=False, bootloader_ignore_signals=False, strip=False, upx=True, console=False, # 无控制台窗口 disable_windowed_traceback=False, argv_emulation=False, target_arch=None, codesign_identity=None, entitlements_file=None, )