mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-18 18:12:12 -05:00
46064e3af3
To comply with the WSJT_X GPL v3 license, the closed source KVASD executable must be delivered separately and optionally to end users. To facilitate this a new install option has been added to the Windows installer to install KVASD by downloading it at install time. The installer first downloads the KVASD EULA from the Internet and presents it to the user for reading and agreement. If agreement is given the KVASD binary is downloaded from the Internet and checksummed using an MD5 hash, if that passes, it is installed along with WSJT-X. An uninstall record is also written to ensure that, if installed, KVASD will be un-installed if WSJT-X is un-installed. To facilitate this enhancment to the NSIS installer the standard CPack NSIS installer script template has been overridden with a project specific version. This version also implements the more modern and recomended nsDialogs mechanism for installer custom page construction including the install options page. See CMake/Modules/NSIS.template.in for details and CMakeCPackOptions.cmake.in for usage in this installer. Merged from branch wsjtx-1.4. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4663 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
35 lines
1.0 KiB
CMake
35 lines
1.0 KiB
CMake
#
|
|
# CMake script to fetch kvasd binary for the current platform
|
|
#
|
|
set (kvasd_NAME ${URL}/${SYSTEM_NAME}/kvasd${EXECUTABLE_SUFFIX})
|
|
message (STATUS "file: ${kvasd_NAME}")
|
|
|
|
file (
|
|
DOWNLOAD ${kvasd_NAME}.md5 contrib/kvasd${EXECUTABLE_SUFFIX}.md5
|
|
TIMEOUT 120
|
|
STATUS status
|
|
LOG log
|
|
SHOW_PROGRESS
|
|
)
|
|
list (GET staus 0 rc)
|
|
if (rc)
|
|
message (WARNING "${status}")
|
|
message (FATAL_ERROR "${log}")
|
|
endif (rc)
|
|
file (READ contrib/kvasd${EXECUTABLE_SUFFIX}.md5 md5sum)
|
|
string (REGEX MATCH "[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]" md5sum ${md5sum})
|
|
|
|
file (
|
|
DOWNLOAD ${kvasd_NAME} contrib/kvasd${EXECUTABLE_SUFFIX}
|
|
TIMEOUT 120
|
|
STATUS status
|
|
LOG log
|
|
SHOW_PROGRESS
|
|
EXPECTED_MD5 ${md5sum}
|
|
)
|
|
list (GET status 0 rc)
|
|
if (rc)
|
|
message (WARNING "${status}")
|
|
message (FATAL_ERROR "${log}")
|
|
endif (rc)
|