Sideband/sideband.spec

69 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2024-11-27 05:14:46 -07:00
# -*- mode: python ; coding: utf-8 -*-
from kivy_deps import sdl2, glew
a = Analysis(
['main.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
def extra_datas(mydir):
def rec_glob(p, files):
import os
import glob
for d in glob.glob(p):
if os.path.isfile(d):
files.append(d)
rec_glob("%s/*" % d, files)
files = []
rec_glob("%s/*" % mydir, files)
extra_datas = []
for f in files:
extra_datas.append((f, f, 'DATA'))
return extra_datas
a.datas += extra_datas('sbapp')
a.datas += extra_datas('RNS')
a.datas += extra_datas('LXMF')
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
2024-11-27 06:07:48 -07:00
name='Sideband',
icon="sbapp\\assets\\icon.png",
2024-11-27 05:14:46 -07:00
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
2024-11-27 06:07:48 -07:00
console=False,
2024-11-27 05:14:46 -07:00
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
coll = COLLECT(
exe,
a.binaries,
a.datas,
*[Tree(p) for p in (sdl2.dep_bins + glew.dep_bins)],
strip=False,
upx=True,
upx_exclude=[],
name='main',
)