|
|
|
|
|
from PyInstaller.utils.hooks import collect_all |
|
|
|
|
|
datas = [] |
|
|
binaries = [] |
|
|
hiddenimports = [] |
|
|
tmp_ret = collect_all('kivymd') |
|
|
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2] |
|
|
|
|
|
|
|
|
a = Analysis( |
|
|
['katrain/__main__.py'], |
|
|
pathex=[], |
|
|
binaries=binaries, |
|
|
datas=datas, |
|
|
hiddenimports=hiddenimports, |
|
|
hookspath=[], |
|
|
hooksconfig={}, |
|
|
runtime_hooks=[], |
|
|
excludes=['ffpyplayer', 'pygame'], |
|
|
noarchive=False, |
|
|
optimize=0, |
|
|
) |
|
|
pyz = PYZ(a.pure) |
|
|
|
|
|
exe = EXE( |
|
|
pyz, |
|
|
a.scripts, |
|
|
[], |
|
|
exclude_binaries=True, |
|
|
name='test_katrain', |
|
|
debug=False, |
|
|
bootloader_ignore_signals=False, |
|
|
strip=False, |
|
|
upx=True, |
|
|
console=True, |
|
|
disable_windowed_traceback=False, |
|
|
argv_emulation=False, |
|
|
target_arch=None, |
|
|
codesign_identity=None, |
|
|
entitlements_file=None, |
|
|
) |
|
|
coll = COLLECT( |
|
|
exe, |
|
|
a.binaries, |
|
|
a.datas, |
|
|
strip=False, |
|
|
upx=True, |
|
|
upx_exclude=[], |
|
|
name='test_katrain', |
|
|
) |
|
|
|