mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-24 02:00:24 +07:00
fixed deploy service additional data for debug target
This commit is contained in:
@@ -509,7 +509,7 @@ elseif(APPLE AND NOT IOS)
|
|||||||
set(DEPLOY_ARTIFACT_PATH "macos")
|
set(DEPLOY_ARTIFACT_PATH "macos")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT IOS)
|
if(NOT IOS AND NOT ANDROID)
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET ${PROJECT} POST_BUILD
|
TARGET ${PROJECT} POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND} -E $<IF:$<CONFIG:Debug>,copy_directory,true>
|
COMMAND ${CMAKE_COMMAND} -E $<IF:$<CONFIG:Debug>,copy_directory,true>
|
||||||
|
|||||||
@@ -97,9 +97,19 @@ if(NOT IOS)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# deploy artifacts required to run the application to the debug build folder
|
# deploy artifacts required to run the application to the debug build folder
|
||||||
if(LINUX)
|
if(WIN32)
|
||||||
set(DEPLOY_ARTIFACT_PATH "linux/service")
|
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "8")
|
||||||
|
set(DEPLOY_ARTIFACT_PATH "windows/x64")
|
||||||
|
else()
|
||||||
|
set(DEPLOY_ARTIFACT_PATH "windows/x32")
|
||||||
|
endif()
|
||||||
|
elseif(LINUX)
|
||||||
|
set(DEPLOY_ARTIFACT_PATH "linux/serivce")
|
||||||
|
elseif(APPLE AND NOT IOS)
|
||||||
|
set(DEPLOY_ARTIFACT_PATH "macos")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(NOT IOS AND NOT ANDROID)
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET ${PROJECT} POST_BUILD
|
TARGET ${PROJECT} POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND} -E $<IF:$<CONFIG:Debug>,copy_directory,true>
|
COMMAND ${CMAKE_COMMAND} -E $<IF:$<CONFIG:Debug>,copy_directory,true>
|
||||||
|
|||||||
Reference in New Issue
Block a user