Include OpenSSL 1.1 in Win32 and Win64 installer packages
This commit is contained in:
@@ -57,7 +57,8 @@ jobs:
|
||||
mingw-w64-i686-libraqm \
|
||||
mingw-w64-i686-SDL \
|
||||
mingw-w64-i686-clang \
|
||||
mingw-w64-i686-nsis
|
||||
mingw-w64-i686-nsis \
|
||||
mingw-w64-i686-openssl
|
||||
python -m pip install clang
|
||||
|
||||
- name: Cache Qt
|
||||
|
||||
@@ -68,7 +68,8 @@ jobs:
|
||||
mingw-w64-x86_64-libraqm \
|
||||
mingw-w64-x86_64-SDL \
|
||||
mingw-w64-x86_64-clang \
|
||||
mingw-w64-x86_64-nsis
|
||||
mingw-w64-x86_64-nsis \
|
||||
mingw-w64-x86_64-openssl
|
||||
python -m pip install clang
|
||||
|
||||
- name: Cache Qt
|
||||
|
||||
@@ -404,22 +404,24 @@ elseif(WIN32)
|
||||
message(WARNING "Installer: SDL.dll not found, set SDL_LIBRARY_PATH manually.")
|
||||
endif()
|
||||
|
||||
# libeay (SSL) dlls (used by QtNetwork) -- not strictly required but avoids possible issues with downloads and Qt warnings.
|
||||
# file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" WIN_PROGRAM_FILES)
|
||||
# find_path(EAY_LIB_DIR libeay32.dll HINTS
|
||||
# "${WIN_PROGRAM_FILES}/OpenSSL" "${WIN_PROGRAM_FILES}/OpenSSL-Win32"
|
||||
# "C:/OpenSSL/" "C:/OpenSSL-Win32/"
|
||||
# "${WIN_EXTRA_LIBS_PATH}" "${WIN_EXTRA_LIBS_PATH}/OpenSSL" "${WIN_EXTRA_LIBS_PATH}/OpenSSL-Win32"
|
||||
# "${MINGW_DIR}/../opt/bin"
|
||||
# "${PYTHON_DIRECTORY}/lib/site-packages/PyQt4"
|
||||
# PATH_SUFFIXES bin
|
||||
# DOC "Path to libeay32.dll and ssleay32.dll (OpenSSL)"
|
||||
# )
|
||||
# if (EAY_LIB_DIR)
|
||||
# install(FILES "${EAY_LIB_DIR}/libeay32.dll" "${EAY_LIB_DIR}/ssleay32.dll" DESTINATION ${INSTALL_DESTINATION} OPTIONAL)
|
||||
# else()
|
||||
# message(WARNING "Installer: SSL libs not found, set EAY_LIB_DIR manually.")
|
||||
# endif()
|
||||
# SSL dlls (used by QtNetwork)
|
||||
file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" WIN_PROGRAM_FILES)
|
||||
# try 64-bit
|
||||
find_path(SSL_LIB_DIR libssl-1_1-x64.dll libssl-1_1-x86.dll HINTS
|
||||
"${WIN_PROGRAM_FILES}/OpenSSL" "${WIN_PROGRAM_FILES}/OpenSSL-Win32"
|
||||
"C:/OpenSSL/" "C:/OpenSSL-Win32/"
|
||||
"${WIN_EXTRA_LIBS_PATH}" "${WIN_EXTRA_LIBS_PATH}/OpenSSL" "${WIN_EXTRA_LIBS_PATH}/OpenSSL-Win32"
|
||||
"${MINGW_DIR}/../opt/bin"
|
||||
"${PYTHON_DIRECTORY}/lib/site-packages/PyQt4"
|
||||
PATH_SUFFIXES bin
|
||||
DOC "Path to OpenSSL for Windows 1.1"
|
||||
)
|
||||
if (SSL_LIB_DIR)
|
||||
install(FILES "${SSL_LIB_DIR}/libssl-1_1-x64.dll" "${SSL_LIB_DIR}/libcrypto-1_1-x64.dll" DESTINATION ${INSTALL_DESTINATION} OPTIONAL)
|
||||
install(FILES "${SSL_LIB_DIR}/libssl-1_1-x86.dll" "${SSL_LIB_DIR}/libcrypto-1_1-x86.dll" DESTINATION ${INSTALL_DESTINATION} OPTIONAL)
|
||||
else()
|
||||
message(WARNING "Installer: SSL libs not found, set SSL_LIB_DIR manually.")
|
||||
endif()
|
||||
endif() # WIN32 install
|
||||
|
||||
############# Packaging ####################
|
||||
|
||||
@@ -14,7 +14,7 @@ do
|
||||
done
|
||||
|
||||
echo "=== Step $((STEP++)): Installing packages ==="
|
||||
pacman -S --noconfirm mingw-w64-x86_64-cmake mingw-w64-x86_64-python-pip mingw-w64-x86_64-python-pillow mingw-w64-x86_64-python-lz4 mingw-w64-x86_64-arm-none-eabi-gcc mingw-w64-x86_64-libjpeg-turbo mingw-w64-x86_64-zlib mingw-w64-x86_64-libtiff mingw-w64-x86_64-freetype mingw-w64-x86_64-lcms2 mingw-w64-x86_64-libwebp mingw-w64-x86_64-openjpeg2 mingw-w64-x86_64-libimagequant mingw-w64-x86_64-libraqm mingw-w64-x86_64-SDL mingw-w64-x86_64-nsis mingw-w64-x86_64-clang
|
||||
pacman -S --noconfirm mingw-w64-x86_64-cmake mingw-w64-x86_64-python-pip mingw-w64-x86_64-python-pillow mingw-w64-x86_64-python-lz4 mingw-w64-x86_64-arm-none-eabi-gcc mingw-w64-x86_64-libjpeg-turbo mingw-w64-x86_64-zlib mingw-w64-x86_64-libtiff mingw-w64-x86_64-freetype mingw-w64-x86_64-lcms2 mingw-w64-x86_64-libwebp mingw-w64-x86_64-openjpeg2 mingw-w64-x86_64-libimagequant mingw-w64-x86_64-libraqm mingw-w64-x86_64-SDL mingw-w64-x86_64-nsis mingw-w64-x86_64-clang mingw-w64-x86_64-openssl
|
||||
if [[ $PAUSEAFTEREACHLINE == "true" ]]; then
|
||||
echo "Step finished. Please check the output above and press Enter to continue or Ctrl+C to stop."
|
||||
read
|
||||
|
||||
Reference in New Issue
Block a user