From c243d0dd698c7ac6ec78b13bde2a3ff4e8c0db97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Trzci=C5=84ski?= Date: Sun, 27 Nov 2022 15:32:33 +0100 Subject: [PATCH] Add some various helper development scripts --- scripts/run_loop.bat | 8 ++++---- scripts/run_loop_FanControl.bat | 1 + scripts/run_loop_PerformanceOverlay.bat | 1 + scripts/run_loop_PowerControl.bat | 1 + scripts/run_loop_SteamController.bat | 1 + 5 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 scripts/run_loop_FanControl.bat create mode 100644 scripts/run_loop_PerformanceOverlay.bat create mode 100644 scripts/run_loop_PowerControl.bat create mode 100644 scripts/run_loop_SteamController.bat diff --git a/scripts/run_loop.bat b/scripts/run_loop.bat index b64934d..e5ebf43 100644 --- a/scripts/run_loop.bat +++ b/scripts/run_loop.bat @@ -1,15 +1,15 @@ if not "%1"=="am_admin" (powershell start -verb runas '%0' 'am_admin,%1' & exit /b) if "%2"=="" (echo missing name & timeout /t 3 & exit /b) -cd "%~dp0" +cd "%~dp0\.." :retry -taskkill /F /IM "%1.exe" -del %1\bin\Debug\net6.0-windows\%1.exe +taskkill /F /IM "%2.exe" +del %2\bin\Debug\net6.0-windows\%2.exe dotnet build -%1\bin\Debug\net6.0-windows\%1.exe +%2\bin\Debug\net6.0-windows\%2.exe timeout /t 3 goto retry diff --git a/scripts/run_loop_FanControl.bat b/scripts/run_loop_FanControl.bat new file mode 100644 index 0000000..6d48cef --- /dev/null +++ b/scripts/run_loop_FanControl.bat @@ -0,0 +1 @@ +run_loop.bat FanControl diff --git a/scripts/run_loop_PerformanceOverlay.bat b/scripts/run_loop_PerformanceOverlay.bat new file mode 100644 index 0000000..659b511 --- /dev/null +++ b/scripts/run_loop_PerformanceOverlay.bat @@ -0,0 +1 @@ +run_loop.bat PerformanceOverlay diff --git a/scripts/run_loop_PowerControl.bat b/scripts/run_loop_PowerControl.bat new file mode 100644 index 0000000..5e55d32 --- /dev/null +++ b/scripts/run_loop_PowerControl.bat @@ -0,0 +1 @@ +run_loop.bat PowerControl diff --git a/scripts/run_loop_SteamController.bat b/scripts/run_loop_SteamController.bat new file mode 100644 index 0000000..7cb908a --- /dev/null +++ b/scripts/run_loop_SteamController.bat @@ -0,0 +1 @@ +run_loop.bat SteamController