12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- # -*- mode: python ; coding: utf-8 -*-
- a = Analysis(
- ['main.py'],
- pathex=[],
- binaries=[('config.json','config.json')],
- datas=[('wcferry', 'wcferry'),('template.db', '.')],
- hiddenimports=['_cffi_backend'],
- hookspath=[],
- hooksconfig={},
- runtime_hooks=[],
- excludes=[],
- noarchive=False,
- optimize=0,
- )
- pyz = PYZ(a.pure)
- exe = EXE(
- pyz,
- a.scripts,
- [],
- exclude_binaries=True,
- name='轻马AI智能助手',
- 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,
- icon=['wechat.ico'],
- )
- coll = COLLECT(
- exe,
- a.binaries,
- a.datas,
- strip=False,
- upx=True,
- upx_exclude=[],
- name='轻马AI智能助手',
- )
- import shutil
- import os
- def create_logs_directory():
- logs_path = os.path.join('dist/轻马AI智能助手','logs')
- if not os.path.exists(logs_path):
- os.makedirs(logs_path)
- def copy_file():
- shutil.copy("./config.json", "./dist/轻马AI智能助手/config.json")
- # Call the function to create the logs directory
- create_logs_directory()
- copy_file()
|