You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.3 KiB
55 lines
1.3 KiB
# -*- mode: python ; coding: utf-8 -*-
|
|
from PyInstaller.utils.hooks import collect_all
|
|
|
|
datas = [('src\\frontend', 'frontend')]
|
|
binaries = []
|
|
hiddenimports = ['ssl']
|
|
tmp_ret = collect_all('ssl')
|
|
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
|
|
|
# Manually add OpenSSL DLLs
|
|
import os
|
|
anaconda_home = 'F:\\anaconda3'
|
|
if os.path.exists(anaconda_home):
|
|
lib_bin = os.path.join(anaconda_home, 'Library', 'bin')
|
|
if os.path.exists(lib_bin):
|
|
for dll in ['libssl-3-x64.dll', 'libcrypto-3-x64.dll']:
|
|
dll_path = os.path.join(lib_bin, dll)
|
|
if os.path.exists(dll_path):
|
|
binaries.append((dll_path, '.'))
|
|
|
|
a = Analysis(
|
|
['src\\start.py'],
|
|
pathex=[],
|
|
binaries=binaries,
|
|
datas=datas,
|
|
hiddenimports=hiddenimports,
|
|
hookspath=[],
|
|
hooksconfig={},
|
|
runtime_hooks=[],
|
|
excludes=[],
|
|
noarchive=False,
|
|
optimize=0,
|
|
)
|
|
pyz = PYZ(a.pure)
|
|
|
|
exe = EXE(
|
|
pyz,
|
|
a.scripts,
|
|
a.binaries,
|
|
a.datas,
|
|
[],
|
|
exclude_binaries=False,
|
|
name='QuizClient',
|
|
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,
|
|
)
|