mirror of
https://github.com/zealdocs/zeal.git
synced 2024-08-17 02:00:25 +03:00
cmake(build): include OS and architecture in package name
Windows only for now.
This commit is contained in:
parent
eadc5fcd1e
commit
f87563b3bf
@ -108,9 +108,24 @@ set(CPACK_PACKAGE_NAME ${CMAKE_PROJECT_NAME})
|
||||
set(CPACK_PACKAGE_DESCRIPTION ${CMAKE_PROJECT_DESCRIPTION})
|
||||
set(CPACK_PACKAGE_VENDOR ${PROJECT_COMPANY_NAME})
|
||||
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
|
||||
set(CPACK_PACKAGE_FILE_NAME "${_project_output_name}-${ZEAL_VERSION_FULL}")
|
||||
set(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}/src/app/resources/zeal.ico")
|
||||
|
||||
# Set binary package file name.
|
||||
if(WIN32)
|
||||
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64")
|
||||
set(_package_file_name_suffix "-windows-x64")
|
||||
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "IA64")
|
||||
set(_package_file_name_suffix "-windows-x64")
|
||||
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "X86")
|
||||
set(_package_file_name_suffix "-windows-x86")
|
||||
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "ARM64")
|
||||
set(_package_file_name_suffix "-windows-arm64")
|
||||
else()
|
||||
set(_package_file_name_suffix "-windows-unknown")
|
||||
endif()
|
||||
endif()
|
||||
set(CPACK_PACKAGE_FILE_NAME "${_project_output_name}-${ZEAL_VERSION_FULL}${_package_file_name_suffix}")
|
||||
|
||||
set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME})
|
||||
set(CPACK_PACKAGE_EXECUTABLES ${_project_output_name} ${CPACK_PACKAGE_NAME})
|
||||
set(CPACK_CREATE_DESKTOP_LINKS ${_project_output_name} ${CPACK_PACKAGE_NAME})
|
||||
|
Loading…
Reference in New Issue
Block a user