OCT 1. 更新打包文件名,移除日期时间中的分割符号

This commit is contained in:
huangxin 2023-01-11 17:53:18 +08:00
parent 59e03f7792
commit 3f61b84784
1 changed files with 4 additions and 3 deletions

View File

@ -78,12 +78,13 @@ ADD_CUSTOM_COMMAND(TARGET ${PROJECT_TARGET}
SET(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install/") SET(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install/")
INSTALL(FILES ../config/vcpe.cfg ../config/vcpe@.service ../config/banner.txt ../config/zlog.conf INSTALL(FILES ../config/vcpe.cfg ../config/vcpe@.service ../config/banner.txt ../config/zlog.conf
DESTINATION config) DESTINATION config)
INSTALL(TARGETS ${PROJECT_TARGET} INSTALL(TARGETS ${PROJECT_TARGET} RUNTIME DESTINATION ./)
RUNTIME DESTINATION ./) INSTALL(DIRECTORY DESTINATION ./log)
SET(CPACK_GENERATOR "TGZ") SET(CPACK_GENERATOR "TGZ")
IF ("${VERSION_GIT_HASH_SHORT}" STREQUAL "") IF ("${VERSION_GIT_HASH_SHORT}" STREQUAL "")
SET(CPACK_PACKAGE_FILE_NAME "vCPE-${VCPE_VERSION}-linux-amd64_${VERSION_GIT_TAG}") STRING(REGEX REPLACE "[_:-]" "" VER_STR "${VERSION_GIT_TAG}")
SET(CPACK_PACKAGE_FILE_NAME "vCPE-${VCPE_VERSION}-linux-amd64_${VER_STR}")
ELSE () ELSE ()
SET(CPACK_PACKAGE_FILE_NAME "vCPE-${VCPE_VERSION}-linux-amd64_${VERSION_GIT_HASH_SHORT}") SET(CPACK_PACKAGE_FILE_NAME "vCPE-${VCPE_VERSION}-linux-amd64_${VERSION_GIT_HASH_SHORT}")
ENDIF () ENDIF ()