SEBWIN-742: Integrated Themida into build process.

This commit is contained in:
Damian Büchel 2024-06-24 14:40:42 +02:00
parent b4366adab1
commit 68d6d47fe6

View file

@ -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