mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 15:13:09 +02:00
use compile time command for conditional signing
This commit is contained in:
parent
f8ca9e64a9
commit
a17ac026cc
1 changed files with 7 additions and 7 deletions
|
@ -6,6 +6,7 @@
|
||||||
!define VERSION "@CPACK_PACKAGE_VERSION@"
|
!define VERSION "@CPACK_PACKAGE_VERSION@"
|
||||||
!define PATCH "@CPACK_PACKAGE_VERSION_PATCH@"
|
!define PATCH "@CPACK_PACKAGE_VERSION_PATCH@"
|
||||||
!define INST_DIR "@CPACK_TEMPORARY_DIRECTORY@"
|
!define INST_DIR "@CPACK_TEMPORARY_DIRECTORY@"
|
||||||
|
!define PRODUCTION_BUILD "@PRODUCTION_BUILD@"
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Variables
|
;Variables
|
||||||
|
@ -49,6 +50,12 @@
|
||||||
|
|
||||||
!system "$%TEMP%\tempinstaller.exe" = 2
|
!system "$%TEMP%\tempinstaller.exe" = 2
|
||||||
|
|
||||||
|
; The Inner invocation has written an uninstaller binary for us.
|
||||||
|
; We need to sign it if it's a production or PR build.
|
||||||
|
!ifdef PRODUCTION_BUILD
|
||||||
|
!system "@SIGNTOOL_EXECUTABLE@ sign /f %HF_PFX_FILE% /p %HF_PFX_PASSPHRASE% /tr http://tsa.starfieldtech.com /td SHA256 $%TEMP%\uninstaller.exe" = 0
|
||||||
|
!endif
|
||||||
|
|
||||||
; Good. Now we can carry on writing the real installer.
|
; Good. Now we can carry on writing the real installer.
|
||||||
|
|
||||||
;Name and file
|
;Name and file
|
||||||
|
@ -1100,13 +1107,6 @@ Function .onInit
|
||||||
|
|
||||||
; just bail out quickly when running the "inner" installer
|
; just bail out quickly when running the "inner" installer
|
||||||
Quit
|
Quit
|
||||||
!else
|
|
||||||
; The Inner invocation has written an uninstaller binary for us.
|
|
||||||
; We need to sign it if it's a production build.
|
|
||||||
|
|
||||||
${If} "@PRODUCTION_BUILD@" == "1"
|
|
||||||
!system "@SIGNTOOL_EXECUTABLE@ sign /f %HF_PFX_FILE% /p %HF_PFX_PASSPHRASE% /tr http://tsa.starfieldtech.com /td SHA256 $%TEMP%\uninstaller.exe" = 0
|
|
||||||
${EndIf}
|
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
StrCmp "@CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL@" "ON" 0 inst
|
StrCmp "@CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL@" "ON" 0 inst
|
||||||
|
|
Loading…
Reference in a new issue