Initial portable Caffeine implementation

This commit is contained in:
2026-02-24 17:15:42 +11:00
commit 1c8f184994
3 changed files with 2108 additions and 0 deletions

13
run-caffeine.bat Normal file
View File

@@ -0,0 +1,13 @@
@echo off
setlocal
set "SCRIPT_DIR=%~dp0"
set "PS_SCRIPT=%SCRIPT_DIR%caffeine.ps1"
if not exist "%PS_SCRIPT%" (
echo Could not find "%PS_SCRIPT%".
exit /b 1
)
powershell.exe -NoProfile -ExecutionPolicy Bypass -STA -File "%PS_SCRIPT%" %*
exit /b %ERRORLEVEL%