-
Notifications
You must be signed in to change notification settings - Fork 5
/
vol.spec
58 lines (52 loc) · 2.37 KB
/
vol.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# This file is Copyright 2019 Volatility Foundation and licensed under the Volatility Software License 1.0
# which is available at https://www.volatilityfoundation.org/license/vsl-v1.0
#
import os
import sys
from PyInstaller.building.api import PYZ, EXE
from PyInstaller.building.build_main import Analysis
from PyInstaller.utils.hooks import collect_submodules, collect_data_files
block_cipher = None
# Volatility must be findable in sys.path in order for collect_submodules to work
# This adds the current working directory, which should usually do the trick
sys.path.append(os.getcwd())
if not os.path.exists('resources/node_modules'):
print("Please run 'npm install' before attempting to build an executable")
sys.exit(1)
a = Analysis(['vol.py'],
pathex = [],
binaries = [],
datas = [('resources', 'resources')] + \
collect_data_files('volumetric') + \
collect_data_files('volatility.framework') + \
collect_data_files('volatility.framework.automagic', include_py_files = True) + \
collect_data_files('volatility.framework.plugins', include_py_files = True) + \
collect_data_files('volatility.framework.layers', include_py_files = True) + \
collect_data_files('volatility.schemas') + \
collect_data_files('volatility.plugins', include_py_files = True),
hiddenimports = collect_submodules('volatility.framework.automagic') + \
collect_submodules('volatility.framework.plugins') + \
collect_submodules('volatility.framework.symbols'),
hookspath = [],
runtime_hooks = [],
excludes = [],
win_no_prefer_redirects = False,
win_private_assemblies = False,
cipher = block_cipher,
noarchive = False)
pyz = PYZ(a.pure, a.zipped_data,
cipher = block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name = 'volumetric',
icon = os.path.join('resources', 'images', 'favicon', 'favicon.ico'),
debug = False,
bootloader_ignore_signals = False,
strip = False,
upx = True,
runtime_tmpdir = None,
console = True)