mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-26 19:29:01 +00:00
PICARD-1703: Upgrade to PyInstaller 3.6
Allows us to remove some Windows specific workarounds, fixes a CVE related to the portable onefile install.
This commit is contained in:
12
picard.spec
12
picard.spec
@@ -50,18 +50,8 @@ 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
|
||||
(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
|
||||
(os.path.join(qt_binaries_path, 'libcrypto-1_1-x64.dll'), '.'),
|
||||
(os.path.join(qt_binaries_path, 'libssl-1_1-x64.dll'), '.'),
|
||||
]
|
||||
binaries += [('discid.dll', '.')]
|
||||
data_files.append((os.path.join('resources', 'win10', '*'), '.'))
|
||||
|
||||
if os_name == 'Darwin':
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
Babel==2.6
|
||||
PyInstaller==3.5
|
||||
PyInstaller==3.6
|
||||
|
||||
@@ -37,12 +37,6 @@ Function FinalizePackage {
|
||||
CodeSignBinary (Join-Path $Path fpcalc.exe)
|
||||
CodeSignBinary (Join-Path $Path discid.dll)
|
||||
|
||||
# Workaround for https://github.com/pyinstaller/pyinstaller/issues/4429
|
||||
$OldTRanslationsPath = (Join-Path $Path PyQt5\translations)
|
||||
If (Test-Path $OldTRanslationsPath -PathType Container) {
|
||||
Move-Item -Path $OldTRanslationsPath -Destination (Join-Path $Path PyQt5\Qt)
|
||||
}
|
||||
|
||||
# Delete unused files
|
||||
Remove-Item -Path (Join-Path $Path libcrypto-1_1.dll)
|
||||
Remove-Item -Path (Join-Path $Path libssl-1_1.dll)
|
||||
|
||||
Reference in New Issue
Block a user