forked from BillBillBillBill/Tickeys-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build32.spec
38 lines (37 loc) · 1.22 KB
/
build32.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- mode: python -*-
# coding: utf-8
block_cipher = None
a = Analysis(
['./tickeys/run.py'],
pathex=['./tickeys'],
binaries=[
('lib/32/libmodplug.so.1',"."),
('lib/32/libSDL2_ttf-2.0.so.0',"."),
('lib/32/libSDL2_image-2.0.so.0',"."),
('lib/32/libSDL2_mixer-2.0.so.0',"."),
('lib/32/libSDL2-2.0.so.0',"."),
('lib/32/libsndio.so.6.0',"."),
], # 动态库
datas=[("./tickeys/tickeys.png",".")], # 数据文件,可以是任意文件类型,例如ini配置文件、字体文件、图片等
hiddenimports=['six','packaging', 'packaging.version', 'packaging.specifiers'],
hookspath=None,
runtime_hooks=None,
excludes=None,
win_no_prefer_redirects=None,
win_private_assemblies=None,
cipher=block_cipher)
a.datas += Tree("./tickeys/Resources", prefix = "Resources")
a.datas += Tree("./tickeys/kivy", prefix = "kivy")
a.datas += Tree("./tickeys/locale", prefix = "locale")
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='Tickeys',
debug=False,
strip=None,
upx=True,
console=True
)