-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
pyinstaller.spec
30 lines (26 loc) · 1007 Bytes
/
pyinstaller.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
# -*- mode: python -*-
import sys
projpath = os.path.dirname(os.path.abspath(SPEC))
def get_plugins(list):
for item in list:
if item[0].startswith('volatility.plugins') and not (item[0] == 'volatility.plugins' and '__init__.py' in item[1]):
yield item
exeext = ".exe" if sys.platform.startswith("win") else ""
a = Analysis([os.path.join(projpath, 'vol.py')],
pathex = [HOMEPATH],
hookspath = [os.path.join(projpath, 'pyinstaller')])
pyz = PYZ(a.pure)
plugins = Tree(os.path.join(projpath, 'volatility', 'plugins'),
os.path.join('plugins'))
exe = EXE(pyz,
a.scripts + [('u', '', 'OPTION')],
a.binaries,
a.zipfiles,
a.datas,
plugins,
name = os.path.join(projpath, 'dist', 'pyinstaller', 'volatility' + exeext),
debug = False,
strip = False,
upx = True,
icon = os.path.join(projpath, 'resources', 'volatility.ico'),
console = 1)