123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- # -*- mode: python ; coding: utf-8 -*-
- a = Analysis(
- ['main.py'],
- pathex=['.','workphone'],
- binaries=[('config.json','config.json')],
- datas=[('wcferry', 'wcferry'),('workphone', 'workphone')],
- hiddenimports=[
- '_cffi_backend',
- 'TransportMessage_pb2',
- 'DeviceAuthReq_pb2',
- 'DeviceAuthRsp_pb2',
- 'ErrorMessage_pb2',
- 'WeChatOnlineNotice_pb2',
- 'FriendTalkNotice_pb2',
- 'WeChatTalkToFriendNotice_pb2',
- 'TalkToFriendTask_pb2',
- 'TalkToFriendTaskResultNotice_pb2',
- 'FriendAddNotice_pb2',
- 'FriendPushNotice_pb2',
- 'TriggerFriendPushTask_pb2',
- 'ChatRoomPushNotice_pb2',
- 'ChatRoomMessage_pb2',
- 'ConversationPushNotice_pb2',
- 'ConversMessage_pb2',
- 'HistoryMsgPushNotice_pb2',
- 'ChatMessage_pb2',
- 'TriggerChatRoomPushTask_pb2',
- 'TriggerConversationPushTask_pb2',
- 'TriggerHistoryMsgPushTask_pb2'
- ],
- hookspath=[],
- hooksconfig={},
- runtime_hooks=[],
- excludes=[],
- noarchive=False,
- optimize=0,
- )
- pyz = PYZ(a.pure)
- exe = EXE(
- pyz,
- a.scripts,
- a.binaries,
- a.datas,
- [],
- name='AI员工',
- debug=False,
- bootloader_ignore_signals=False,
- strip=False,
- upx=True,
- upx_exclude=[],
- runtime_tmpdir='./temp',
- console=False,
- disable_windowed_traceback=False,
- argv_emulation=False,
- target_arch=None,
- codesign_identity=None,
- entitlements_file=None,
- icon=['wechat.ico'],
- )
- import shutil
- import os
- def create_logs_directory():
- logs_path = os.path.join('dist','logs')
- if not os.path.exists(logs_path):
- os.makedirs(logs_path)
- temp_path = os.path.join('dist','temp')
- if not os.path.exists(temp_path):
- os.makedirs(temp_path)
- def copy_file():
- shutil.copy("./config.json", "./dist/config.json")
- # Call the function to create the logs directory
- create_logs_directory()
- #copy_file()
|