pyinstaller: Include data files

This makes the following things work:

- Error pages
- Caret mode
- pdfjs
- :help
This commit is contained in:
Florian Bruhin 2016-03-26 20:27:23 +01:00
parent b505c65873
commit f24a721e55

View File

@ -3,10 +3,26 @@
block_cipher = None block_cipher = None
def get_data_files():
data_files = [
('../qutebrowser/html', 'html'),
('../qutebrowser/img', 'img'),
('../qutebrowser/javascript', 'javascript'),
('../qutebrowser/html/doc', 'html/doc'),
]
if os.path.exists(os.path.join('qutebrowser', '3rdparty', 'pdfjs')):
data_files.append(('../qutebrowser/3rdparty/pdfjs', '3rdparty/pdfjs'))
else:
print("Warning: excluding pdfjs as it's not present!")
return data_files
a = Analysis(['../qutebrowser.py'], a = Analysis(['../qutebrowser.py'],
pathex=['misc'], pathex=['misc'],
binaries=None, binaries=None,
datas=None, datas=get_data_files(),
hiddenimports=[], hiddenimports=[],
hookspath=[], hookspath=[],
runtime_hooks=[], runtime_hooks=[],