-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaunch.bat
More file actions
33 lines (27 loc) · 1004 Bytes
/
Copy pathlaunch.bat
File metadata and controls
33 lines (27 loc) · 1004 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@echo off
:: Hyperwall — safe launcher with stale-binary detection
setlocal
cd /d "%~dp0"
:: If no exe exists, fall back to script
if not exist "hyperwall.exe" (
echo hyperwall.exe not found — launching script mode.
echo Build with build.bat or bootstrap.ps1 for full G-Sync isolation.
echo.
python hyperwall.py
exit /b %errorlevel%
)
echo === Hyperwall ===
:: Stale-binary check: warn (don't block) if hyperwall.py is newer than the exe.
:: Delegated to scripts\check_stale.ps1 (exit 2 = stale) so the comparison is
:: real and unit-tested in CI, rather than computing timestamps and ignoring them.
if exist "scripts\check_stale.ps1" (
powershell -NoProfile -ExecutionPolicy Bypass -File "scripts\check_stale.ps1" ^
-Source "hyperwall.py" -Exe "hyperwall.exe"
if errorlevel 2 (
echo Continuing with the existing exe. Press Ctrl+C to abort and rebuild.
timeout /t 3 >nul
)
)
echo Launching hyperwall.exe...
echo.
start "" "hyperwall.exe"