mirror of
https://github.com/markqvist/Sideband.git
synced 2024-12-25 07:29:32 -05:00
69 lines
1.3 KiB
Python
69 lines
1.3 KiB
Python
# -*- 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,
|
|
name='Sideband',
|
|
icon="sbapp\\assets\\icon.png",
|
|
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,
|
|
)
|
|
|
|
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',
|
|
)
|