mirror of
https://github.com/volatilityfoundation/volatility
synced 2026-06-08 18:04:46 +00:00
1c16338f4c
NameError: name 'sys' is not defined
31 lines
1007 B
RPMSpec
31 lines
1007 B
RPMSpec
# -*- 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)
|