Files
boss_dp/build_client.spec

76 lines
1.8 KiB
RPMSpec
Raw Normal View History

2026-02-26 20:42:22 +08:00
# -*- mode: python ; coding: utf-8 -*-
2026-03-02 13:51:26 +08:00
# 客户端 GUI 打包配置(单文件)
# 用法: 在项目根目录 (boss_dp) 执行: pyinstaller --clean build_client.spec
2026-02-26 20:42:22 +08:00
import os
2026-02-26 20:55:59 +08:00
_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')
2026-02-26 20:42:22 +08:00
block_cipher = None
a = Analysis(
2026-02-26 20:55:59 +08:00
[_run_client],
pathex=[_spec_dir],
2026-02-26 20:42:22 +08:00
binaries=[],
datas=[],
hiddenimports=[
'client_gui',
'client_gui.main',
'client_gui.config_store',
2026-02-26 20:55:59 +08:00
'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',
2026-02-26 20:42:22 +08:00
'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,
2026-03-02 13:51:26 +08:00
a.binaries,
a.zipfiles,
a.datas,
2026-02-26 20:42:22 +08:00
[],
2026-03-02 13:51:26 +08:00
exclude_binaries=False,
2026-02-26 20:42:22 +08:00
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,
)