-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.cmd
More file actions
27 lines (24 loc) · 730 Bytes
/
Copy pathbuild.cmd
File metadata and controls
27 lines (24 loc) · 730 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
@echo off
REM Build and drop the exe somewhere findable.
REM Cargo always writes to target\release\, which is buried; this copies it up
REM into dist\ so there is one obvious place to grab it from.
setlocal
cd /d "%~dp0"
cargo build --release
if errorlevel 1 (
echo BUILD FAILED
exit /b 1
)
if not exist dist mkdir dist
copy /y "target\release\hidforge.exe" "dist\hidforge.exe" >nul
if errorlevel 1 (
echo Could not copy - is HidForge still running?
exit /b 1
)
echo.
echo Built: %CD%\dist\hidforge.exe
echo.
echo hidforge.exe launch the GUI
echo hidforge.exe --probe 25 see what each button emits
echo hidforge.exe --bench timing sweep
echo hidforge.exe --selftest functional checks