forked from opentechinstitute/commotion-winmesh
-
Notifications
You must be signed in to change notification settings - Fork 1
/
winmesh.spec
44 lines (38 loc) · 1.17 KB
/
winmesh.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
39
40
41
42
43
44
# -*- mode: python -*-
import os
import sys
import inspect
base_path = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
def make_tree(base_path, subdir):
path = os.path.join(base_path, subdir)
prefix = "".join([subdir, "\\"])
return Tree(path, prefix)
a = Analysis(['winmesh.py'],
pathex=[base_path],
hiddenimports=[],
hookspath=None,
runtime_hooks=None)
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=True,
name='winmesh.exe',
icon='images\\commotion_fav.ico',
debug=False,
strip=None,
upx=True,
console=True )
coll = COLLECT(exe,
make_tree(base_path, 'olsrd'),
make_tree(base_path, 'images'),
make_tree(base_path, 'profiles'),
make_tree(base_path, 'templates'),
make_tree(base_path, 'etc'),
make_tree(base_path, 'lib'),
make_tree(base_path, 'share'),
a.binaries,
a.zipfiles,
a.datas,
strip=None,
upx=True,
name='winmesh')