mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 07:43:57 +02:00
attempt to sign executable as a post build step
This commit is contained in:
parent
547d2043e8
commit
e036531796
1 changed files with 5 additions and 1 deletions
|
@ -24,8 +24,12 @@ macro(optional_win_executable_signing)
|
|||
set(EXECUTABLE_NAME $<TARGET_FILE_NAME:${TARGET_NAME}>)
|
||||
endif ()
|
||||
|
||||
# setup the post install command to sign the executable
|
||||
add_custom_command(
|
||||
TARGET ${TARGET_NAME} POST_BUILD
|
||||
COMMAND ${SIGNTOOL_EXEC} sign /f $ENV{HF_PFX_FILE} /p $ENV{HF_PFX_PASSPHRASE} /tr http://tsa.starfieldtech.com\ /td SHA256 $<TARGET_FILE_NAME:${TARGET_NAME}>
|
||||
)
|
||||
|
||||
# setup the post install command to sign the executable
|
||||
install(CODE "\
|
||||
message(STATUS \"Signing ${TARGET_NAME} with signtool.\")
|
||||
execute_process(COMMAND ${SIGNTOOL_EXEC} sign /f $ENV{HF_PFX_FILE}\
|
||||
|
|
Loading…
Reference in a new issue