Support running plugins menu_qrcode and proxyconfig_stem on Windows
by bundling needed metadata into exe.
This commit is contained in:
parent
a757c26d09
commit
11cf001d1a
|
@ -108,11 +108,12 @@ function install_pyinstaller()
|
|||
fi
|
||||
}
|
||||
|
||||
function install_msgpack()
|
||||
function install_pip_depends()
|
||||
{
|
||||
cd "${BASE_DIR}" || exit 1
|
||||
echo "Installing msgpack"
|
||||
wine python -m pip install msgpack-python
|
||||
echo "Installing pip depends"
|
||||
wine python -m pip install msgpack-python .[qrcode] .[tor]
|
||||
python setup.py egg_info
|
||||
}
|
||||
|
||||
function install_pyopencl()
|
||||
|
@ -191,7 +192,7 @@ install_python
|
|||
install_pyqt
|
||||
install_openssl
|
||||
install_pyopencl
|
||||
install_msgpack
|
||||
install_pip_depends
|
||||
install_pyinstaller
|
||||
build_dll
|
||||
build_exe
|
||||
|
|
|
@ -4,6 +4,7 @@ import os
|
|||
import sys
|
||||
import time
|
||||
|
||||
from PyInstaller.utils.hooks import copy_metadata
|
||||
|
||||
site_root = os.path.abspath(HOMEPATH)
|
||||
spec_root = os.path.abspath(SPECPATH)
|
||||
|
@ -27,12 +28,17 @@ os.rename(
|
|||
|
||||
a = Analysis(
|
||||
[os.path.join(srcPath, 'bitmessagemain.py')],
|
||||
datas = [
|
||||
(os.path.join(spec_root[:-20], 'pybitmessage.egg-info') + '/*',
|
||||
'pybitmessage.egg-info')
|
||||
] + copy_metadata('msgpack-python') + copy_metadata('qrcode')
|
||||
+ copy_metadata('six') + copy_metadata('stem'),
|
||||
pathex=[outPath],
|
||||
hiddenimports=[
|
||||
'bitmessageqt.languagebox', 'pyopencl', 'numpy', 'win32com',
|
||||
'setuptools.msvc', '_cffi_backend'
|
||||
'setuptools.msvc', '_cffi_backend',
|
||||
'plugins.menu_qrcode', 'plugins.proxyconfig_stem'
|
||||
],
|
||||
hookspath=None,
|
||||
runtime_hooks=None,
|
||||
excludes=['bsddb', 'bz2', 'tcl', 'tk', 'Tkinter', 'tests']
|
||||
)
|
||||
|
|
Reference in New Issue
Block a user