chore: update the file

This commit is contained in:
x-tools-author 2025-03-04 10:31:10 +08:00
parent fe6179e7a2
commit 51d3fe653e
2 changed files with 3 additions and 2 deletions

View File

@ -30,6 +30,7 @@ message(STATUS "[xTools]Build type: ${CMAKE_BUILD_TYPE}")
message(STATUS "[xTools]CMake version: ${CMAKE_VERSION}")
message(STATUS "[xTools]CMake generator: ${CMAKE_GENERATOR}")
message(STATUS "[xTools]CMake system: ${CMAKE_SYSTEM}")
message(STATUS "[xTools]CMake system processor: ${CMAKE_SYSTEM_PROCESSOR}")
set(X_TOOLS_DEPLOY_LIBS_DIR
${CMAKE_CURRENT_SOURCE_DIR}/libs/${CMAKE_SYSTEM_NAME}/${CMAKE_BUILD_TYPE})

View File

@ -62,8 +62,8 @@ if(${argPackageType} STREQUAL "deb")
execute_process(COMMAND ${CMAKE_COMMAND} -E rm ${argPacketName}.desktop -f WORKING_DIRECTORY ${argWorkingDir})
execute_process(COMMAND ${CMAKE_COMMAND} -E rm ${argPacketName}.png -f WORKING_DIRECTORY ${argWorkingDir})
execute_process(COMMAND ${CMAKE_COMMAND} -E remove_directory usr/share/doc WORKING_DIRECTORY ${argWorkingDir})
set(deb_name ${argLowerTargetName}-ubuntu20.04-v${argVersion}-amd64.deb)
string(deb_name ${new_name} deb_name)
set(deb_name ${argLowerTargetName}-linux-v${argVersion}-amd64.deb)
string(TOLOWER ${deb_name} deb_name)
execute_process(COMMAND dpkg -b ./ ${deb_name} WORKING_DIRECTORY ${argWorkingDir})
else()
execute_process(COMMAND ${CMAKE_COMMAND} -E env VERSION=v${argVersion} ${argTool}