2019-10-10 00:52:42 -04:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
|
|
rem ********************************************************************************
|
|
|
|
|
rem Unblock specific files.
|
|
|
|
|
rem ********************************************************************************
|
|
|
|
|
setlocal
|
|
|
|
|
if defined VERBOSE_ARG (
|
|
|
|
|
set VERBOSE_ARG='Continue'
|
|
|
|
|
) else (
|
|
|
|
|
set VERBOSE_ARG='SilentlyContinue'
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
rem Unblock files in the root of the layout folder. E.g. .cmd files.
|
|
|
|
|
powershell.exe -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "$VerbosePreference = %VERBOSE_ARG% ; Get-ChildItem -LiteralPath '%~dp0' | ForEach-Object { Write-Verbose ('Unblock: {0}' -f $_.FullName) ; $_ } | Unblock-File | Out-Null"
|
|
|
|
|
|
|
|
|
|
|
2022-02-02 11:16:01 +01:00
|
|
|
rem ********************************************************************************
|
|
|
|
|
rem Run.
|
|
|
|
|
rem ********************************************************************************
|
|
|
|
|
|
|
|
|
|
:launch_helper
|
2022-02-02 03:09:13 -08:00
|
|
|
copy "%~dp0run-helper.cmd.template" "%~dp0run-helper.cmd" /Y
|
2022-02-02 11:16:01 +01:00
|
|
|
call "%~dp0run-helper.cmd" %*
|
|
|
|
|
|
|
|
|
|
if %ERRORLEVEL% EQU 1 (
|
|
|
|
|
echo "Restarting runner..."
|
|
|
|
|
goto :launch_helper
|
|
|
|
|
) else (
|
|
|
|
|
echo "Exiting runner..."
|
2022-02-02 03:09:13 -08:00
|
|
|
exit /b 0
|
2019-10-10 00:52:42 -04:00
|
|
|
)
|