mirror of
https://github.com/markqvist/Sideband.git
synced 2024-12-26 07:59:23 -05:00
68 lines
1.3 KiB
RPMSpec
68 lines
1.3 KiB
RPMSpec
|
# -*- 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='main',
|
||
|
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,
|
||
|
*[Tree(p) for p in (sdl2.dep_bins + glew.dep_bins)],
|
||
|
strip=False,
|
||
|
upx=True,
|
||
|
upx_exclude=[],
|
||
|
name='main',
|
||
|
)
|