mirror of
https://github.com/Genymobile/scrcpy
synced 2024-11-17 03:25:38 +00:00
904d470579
On Windows, scrcpy paused on error before exiting to give the user a chance to see the user message. This was a hack and causes issues when using scrcpy from batch scripts. Disable this pause from the scrcpy binary, and provide a batch wrapper (scrcpy-console.bat) to pause on error. Fixes #1875 <https://github.com/Genymobile/scrcpy/issues/1875>
5 lines
90 B
Batchfile
5 lines
90 B
Batchfile
@echo off
|
|
scrcpy.exe %*
|
|
:: if the exit code is >= 1, then pause
|
|
if errorlevel 1 pause
|