Improve build scripts and move them to scripts/

This commit is contained in:
Kamil Trzciński 2022-11-26 13:54:20 +01:00
parent 5d653a3342
commit 43abc56a41
9 changed files with 100 additions and 28 deletions

20
scripts/test_release.bat Normal file
View file

@ -0,0 +1,20 @@
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
:retry
cd "%~dp0"
set configuration=Debug
taskkill /F /IM FanControl.exe
taskkill /F /IM PerformanceOverlay.exe
taskkill /F /IM PowerControl.exe
taskkill /F /IM SteamController.exe
powershell -ExecutionPolicy UnRestricted -File "%~dp0\build.ps1" "%configuration%"
start ..\build-%configuration%\FanControl.exe
start ..\build-%configuration%\PerformanceOverlay.exe
start ..\build-%configuration%\PowerControl.exe
start ..\build-%configuration%\SteamController.exe
timeout /t 5