From 7ff2d0be6b621476784dda1b1824319ec88c5a01 Mon Sep 17 00:00:00 2001 From: Daniel Wolf Date: Fri, 25 Jun 2021 16:08:14 +0200 Subject: [PATCH] Generate nicer artifact names For instance, Rhubarb-Lip-Sync-1.10.0-macOS.zip rather than rhubarb-lip-sync-1.10.0-osx.zip --- CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d319a7e..2c40819 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,9 +19,7 @@ install( # Configure CPack function(get_short_system_name variable) if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin") - set(${variable} "OSX" PARENT_SCOPE) - elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows") - set(${variable} "Win32" PARENT_SCOPE) + set(${variable} "macOS" PARENT_SCOPE) else() set(${variable} "${CMAKE_SYSTEM_NAME}" PARENT_SCOPE) endif() @@ -35,7 +33,6 @@ set(CPACK_PACKAGE_VERSION_MINOR ${appVersionMinor}) set(CPACK_PACKAGE_VERSION_PATCH ${appVersionPatch}) set(CPACK_PACKAGE_VERSION ${appVersion}) 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) # Run CPack