Add desktop launcher script for one-click garage capture
This commit is contained in:
parent
b85672559b
commit
ead31529a4
1 changed files with 23 additions and 0 deletions
23
run_capture.cmd
Normal file
23
run_capture.cmd
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
@echo off
|
||||||
|
setlocal
|
||||||
|
cd /d "%~dp0"
|
||||||
|
|
||||||
|
if not exist capture.toml (
|
||||||
|
echo No capture.toml found.
|
||||||
|
echo Copy capture.toml.example to capture.toml and adjust the paths first.
|
||||||
|
pause
|
||||||
|
exit /b 1
|
||||||
|
)
|
||||||
|
|
||||||
|
if not exist target\release\capture.exe (
|
||||||
|
echo Building capture binary ...
|
||||||
|
cargo build --release --bin capture
|
||||||
|
if errorlevel 1 (
|
||||||
|
pause
|
||||||
|
exit /b 1
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
target\release\capture.exe run
|
||||||
|
echo.
|
||||||
|
pause
|
||||||
Loading…
Add table
Add a link
Reference in a new issue