SEBWIN-742: Integrated Themida into build process.
This commit is contained in:
parent
b4366adab1
commit
68d6d47fe6
1 changed files with 13 additions and 0 deletions
|
@ -140,6 +140,19 @@ git -C $(SolutionDir) checkout -- Setup/Components/Service.wxs</PostBuildEvent>
|
|||
</Target>
|
||||
<PropertyGroup>
|
||||
<PreBuildEvent>setlocal enabledelayedexpansion
|
||||
set executable="$(SolutionDir)SafeExamBrowser.Runtime\bin\$(PlatformName)\$(ConfigurationName)\SafeExamBrowser.exe"
|
||||
set parameters=/shareconsole /protect "C:\SEB\SafeExamBrowser.tmd" /inputfile %25executable%25 /outputfile %25executable%25
|
||||
|
||||
if exist "C:\SEB\Themida" (
|
||||
if $(PlatformName) == x86 (
|
||||
C:\SEB\Themida\Themida.exe %25parameters%25
|
||||
) else (
|
||||
C:\SEB\Themida\Themida64.exe %25parameters%25
|
||||
)
|
||||
DEL %25executable%25.bak
|
||||
) else (
|
||||
echo WARNING: Themida not executed!
|
||||
)
|
||||
|
||||
set binaries=
|
||||
FOR /F %25%25G IN (%27dir "$(SolutionDir)SafeExamBrowser.Runtime\bin\$(PlatformName)\$(ConfigurationName)\%2a.exe" "$(SolutionDir)SafeExamBrowser.Runtime\bin\$(PlatformName)\$(ConfigurationName)\%2a.dll" /s /b%27) DO set binaries=!binaries! %25%25G
|
||||
|
|
Loading…
Reference in a new issue