SEBWIN-742: Improved build log for server environment.
This commit is contained in:
parent
68d6d47fe6
commit
a3c9271faf
2 changed files with 15 additions and 2 deletions
|
@ -149,7 +149,7 @@ namespace SafeExamBrowser.Configuration.DataResources
|
|||
{
|
||||
data = default;
|
||||
|
||||
logger.Debug($"The {(IsUnauthorized(response) ? "resource needs authentication" : " response data is HTML")}.");
|
||||
logger.Debug($"The {(IsUnauthorized(response) ? "resource needs authentication" : "response data is HTML")}.");
|
||||
|
||||
return LoadStatus.LoadWithBrowser;
|
||||
}
|
||||
|
|
|
@ -141,7 +141,11 @@ git -C $(SolutionDir) checkout -- Setup/Components/Service.wxs</PostBuildEvent>
|
|||
<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
|
||||
set parameters=/protect "C:\SEB\SafeExamBrowser.tmd" /inputfile %25executable%25 /outputfile %25executable%25
|
||||
|
||||
if not defined APPVEYOR (
|
||||
set parameters=/shareconsole %25parameters%25
|
||||
)
|
||||
|
||||
if exist "C:\SEB\Themida" (
|
||||
if $(PlatformName) == x86 (
|
||||
|
@ -149,6 +153,15 @@ if exist "C:\SEB\Themida" (
|
|||
) else (
|
||||
C:\SEB\Themida\Themida64.exe %25parameters%25
|
||||
)
|
||||
|
||||
if defined APPVEYOR (
|
||||
if %25ERRORLEVEL%25 equ 0 (
|
||||
echo Themida successfully executed.
|
||||
) else (
|
||||
echo ERROR: Themida failed with error code %25ERRORLEVEL%25!
|
||||
)
|
||||
)
|
||||
|
||||
DEL %25executable%25.bak
|
||||
) else (
|
||||
echo WARNING: Themida not executed!
|
||||
|
|
Loading…
Reference in a new issue