-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.spec
More file actions
42 lines (35 loc) · 1.01 KB
/
main.spec
File metadata and controls
42 lines (35 loc) · 1.01 KB
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
39
40
# -*- mode: python -*-
a = Analysis(['DeputyDJ.py'],
pathex=['C:\\Users\\Christiaan\\Dropbox\\Programming\\Python\\DeputyDJ'],
hiddenimports=[],
hookspath=None,
runtime_hooks=None)
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.append(('cacert.pem', 'cacert.pem', 'DATA'))
a.datas.append(('LICENSE.txt', 'LICENSE.txt', 'DATA'))
a.datas += extra_datas('interface')
a.datas += extra_datas('res')
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='DeputyDJ.exe',
debug=False,
strip=None,
upx=True,
console=False )