From 4629d5c1e29bc4e8b3faeb8d34e4a6d300c427c4 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Wed, 31 Oct 2018 17:03:58 +0000 Subject: [PATCH] Ensure we package all the plugins and their data files. --- vol.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/vol.spec b/vol.spec index 3776f3859..031bb5ff3 100644 --- a/vol.spec +++ b/vol.spec @@ -1,13 +1,19 @@ # -*- mode: python -*- +import sys +from PyInstaller.utils.hooks import collect_submodules, collect_data_files + block_cipher = None +sys.path.append('/home/mike/workspace/volatility3') a = Analysis(['vol.py'], pathex=[], binaries=[], - datas=[('volatility/schemas', 'volatility/schemas')], - hiddenimports=[], + datas=collect_data_files('volatility.framework') + \ + collect_data_files('volatility.schemas') + \ + [('volatility/plugins', 'volatility/plugins')], + hiddenimports=collect_submodules('volatility.plugins'), hookspath=[], runtime_hooks=[], excludes=[],