mirror of
https://github.com/fergalmoran/picard.git
synced 2026-04-23 21:01:27 +00:00
Merge pull request #1241 from phw/windows-package-avoid-qt-libs-copy
Load Qt SSL DLLs on Windows directly from Qt install location
This commit is contained in:
@@ -47,14 +47,6 @@ build_script:
|
||||
|
||||
pip3 install -r requirements-win.txt
|
||||
|
||||
copy /Y %PYTHON_SITE%\PyQt5\Qt\bin\libeay32.dll .
|
||||
|
||||
copy /Y %PYTHON_SITE%\PyQt5\Qt\bin\ssleay32.dll .
|
||||
|
||||
copy /Y %PYTHON_SITE%\PyQt5\Qt\bin\libcrypto-1_1-x64.dll .
|
||||
|
||||
copy /Y %PYTHON_SITE%\PyQt5\Qt\bin\libssl-1_1-x64.dll .
|
||||
|
||||
IF "%APPVEYOR_REPO_TAG%" == "false" python setup.py patch_version --platform=python%PYTHON_VERSION%
|
||||
|
||||
python setup.py build
|
||||
|
||||
12
picard.spec
12
picard.spec
@@ -48,15 +48,17 @@ data_files = get_locale_messages()
|
||||
|
||||
fpcalc_name = 'fpcalc'
|
||||
if os_name == 'Windows':
|
||||
from PyQt5.QtCore import QLibraryInfo
|
||||
qt_binaries_path = QLibraryInfo.location(QLibraryInfo.BinariesPath)
|
||||
fpcalc_name = 'fpcalc.exe'
|
||||
binaries += [
|
||||
('discid.dll', '.'),
|
||||
# The following two lines should not be neccasary with PyInstaller 3.5
|
||||
('libeay32.dll', '.'),
|
||||
('ssleay32.dll', '.'),
|
||||
(os.path.join(qt_binaries_path, 'libeay32.dll'), '.'),
|
||||
(os.path.join(qt_binaries_path, 'ssleay32.dll'), '.'),
|
||||
# The following two lines should not be neccasary with PyInstaller >3.5
|
||||
('libcrypto-1_1-x64.dll', '.'),
|
||||
('libssl-1_1-x64.dll', '.'),
|
||||
(os.path.join(qt_binaries_path, 'libcrypto-1_1-x64.dll'), '.'),
|
||||
(os.path.join(qt_binaries_path, 'libssl-1_1-x64.dll'), '.'),
|
||||
]
|
||||
data_files.append((os.path.join('resources', 'win10', '*'), '.'))
|
||||
|
||||
@@ -105,7 +107,7 @@ coll = COLLECT(exe,
|
||||
name='picard')
|
||||
|
||||
|
||||
if platform.system() == 'Darwin':
|
||||
if os_name == 'Darwin':
|
||||
info_plist = {
|
||||
'NSHighResolutionCapable': 'True',
|
||||
'NSPrincipalClass': 'NSApplication',
|
||||
|
||||
Reference in New Issue
Block a user