Ensure all the schemas, json files and plugins get pulled in.

This commit is contained in:
Mike Auty
2018-10-31 17:15:59 +00:00
parent 4629d5c1e2
commit 8b7c34c20b
+26 -22
View File
@@ -1,38 +1,42 @@
# -*- mode: python -*-
import os
import sys
from PyInstaller.utils.hooks import collect_submodules, collect_data_files
block_cipher = None
sys.path.append('/home/mike/workspace/volatility3')
# 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())
a = Analysis(['vol.py'],
pathex=[],
binaries=[],
datas=collect_data_files('volatility.framework') + \
collect_data_files('volatility.schemas') + \
[('volatility/plugins', 'volatility/plugins')],
hiddenimports=collect_submodules('volatility.plugins'),
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pathex = [],
binaries = [],
datas = collect_data_files('volatility.framework') + \
collect_data_files('volatility.schemas') + \
collect_data_files('volatility.plugins', include_py_files = True),
hiddenimports = collect_submodules('volatility.plugins'),
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)
cipher = block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='vol',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
runtime_tmpdir=None,
console=True )
name = 'vol',
debug = False,
bootloader_ignore_signals = False,
strip = False,
upx = True,
runtime_tmpdir = None,
console = True)