mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 05:58:27 +02:00
add signing of DS and AC executable
This commit is contained in:
parent
9aa5d017d6
commit
d14c8cf9cc
4 changed files with 6 additions and 2 deletions
|
@ -32,6 +32,10 @@ macro(install_beside_console)
|
||||||
DESTINATION ${COMPONENT_DESTINATION}
|
DESTINATION ${COMPONENT_DESTINATION}
|
||||||
COMPONENT ${SERVER_COMPONENT}
|
COMPONENT ${SERVER_COMPONENT}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# on windows for PR and production builds, sign the executable
|
||||||
|
set(EXECUTABLE_COMPONENT ${SERVER_COMPONENT})
|
||||||
|
optional_win_executable_signing()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (TARGET_NAME STREQUAL domain-server)
|
if (TARGET_NAME STREQUAL domain-server)
|
||||||
|
|
|
@ -22,7 +22,7 @@ macro(optional_win_executable_signing)
|
||||||
|
|
||||||
# setup the post install command to sign the executable
|
# setup the post install command to sign the executable
|
||||||
set(SIGN_COMMAND "${SIGNTOOL_EXEC} sign /f $ENV{HF_PFX_FILE} /p $ENV{HF_PFX_PASSPHRASE} /tr http://tsa.starfieldtech.com\
|
set(SIGN_COMMAND "${SIGNTOOL_EXEC} sign /f $ENV{HF_PFX_FILE} /p $ENV{HF_PFX_PASSPHRASE} /tr http://tsa.starfieldtech.com\
|
||||||
/td SHA256 \${CMAKE_INSTALL_PREFIX}/${EXECUTABLE_NAME}"
|
/td SHA256 \${CMAKE_INSTALL_PREFIX}/$<TARGET_FILE_NAME:${TARGET_NAME}>"
|
||||||
)
|
)
|
||||||
|
|
||||||
install(CODE "execute_process(COMMAND ${SIGN_COMMAND})" COMPONENT ${EXECUTABLE_COMPONENT})
|
install(CODE "execute_process(COMMAND ${SIGN_COMMAND})" COMPONENT ${EXECUTABLE_COMPONENT})
|
||||||
|
|
|
@ -37,4 +37,5 @@ if (UNIX)
|
||||||
endif (UNIX)
|
endif (UNIX)
|
||||||
|
|
||||||
package_libraries_for_deployment()
|
package_libraries_for_deployment()
|
||||||
|
|
||||||
install_beside_console()
|
install_beside_console()
|
||||||
|
|
|
@ -239,7 +239,6 @@ else (APPLE)
|
||||||
COMPONENT ${CLIENT_COMPONENT}
|
COMPONENT ${CLIENT_COMPONENT}
|
||||||
)
|
)
|
||||||
|
|
||||||
set(EXECUTABLE_NAME "${INTERFACE_EXEC_PREFIX}.exe")
|
|
||||||
set(EXECUTABLE_COMPONENT ${CLIENT_COMPONENT})
|
set(EXECUTABLE_COMPONENT ${CLIENT_COMPONENT})
|
||||||
|
|
||||||
optional_win_executable_signing()
|
optional_win_executable_signing()
|
||||||
|
|
Loading…
Reference in a new issue