Generate nicer artifact names

For instance, Rhubarb-Lip-Sync-1.10.0-macOS.zip rather than rhubarb-lip-sync-1.10.0-osx.zip
This commit is contained in:
Daniel Wolf 2021-06-25 16:08:14 +02:00
parent 44449e24e8
commit 0270a08523
1 changed files with 1 additions and 4 deletions

View File

@ -19,9 +19,7 @@ install(
# Configure CPack # Configure CPack
function(get_short_system_name variable) function(get_short_system_name variable)
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin") if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
set(${variable} "OSX" PARENT_SCOPE) set(${variable} "macOS" PARENT_SCOPE)
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
set(${variable} "Win32" PARENT_SCOPE)
else() else()
set(${variable} "${CMAKE_SYSTEM_NAME}" PARENT_SCOPE) set(${variable} "${CMAKE_SYSTEM_NAME}" PARENT_SCOPE)
endif() endif()
@ -35,7 +33,6 @@ set(CPACK_PACKAGE_VERSION_MINOR ${appVersionMinor})
set(CPACK_PACKAGE_VERSION_PATCH ${appVersionPatch}) set(CPACK_PACKAGE_VERSION_PATCH ${appVersionPatch})
set(CPACK_PACKAGE_VERSION ${appVersion}) set(CPACK_PACKAGE_VERSION ${appVersion})
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}") set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}")
string(TOLOWER "${CPACK_PACKAGE_FILE_NAME}" CPACK_PACKAGE_FILE_NAME)
set(CPACK_GENERATOR ZIP) set(CPACK_GENERATOR ZIP)
# Run CPack # Run CPack