This commit is contained in:
Martí 2026-04-17 06:37:10 +02:00 committed by GitHub
commit 2029356b60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,11 +46,30 @@ scoop install adb # if you don't have it yet
_See [build.md](build.md) to build and install the app manually._
## Add scrcpy to PATH
First we need to locate the executable. Then create a shortcut for it or add it to PATH.
### If installed with WinGet
Open the Run dialog (<kbd>Win+R</kbd>) and type `%USERPROFILE%\AppData\Local\Microsoft\WinGet\Packages\Genymobile.scrcpy_Microsoft.Winget.Source_8wekyb3d8bbwe`, (press <kbd>Enter</kbd>) and double click the "scrcpy-win64-v3.3.3" folder (or the corresponding version you have), you should see a `scrcpy.exe` file inside.
If you don't plan to execute it with arguments you could just create a Desktop shortcut for the executable. If you want to use the CLI, you can add the executable to user PATH via CLI with:
```bat
setx PATH "%PATH%;%USERPROFILE%\AppData\Local\Microsoft\WinGet\Packages\Genymobile.scrcpy_Microsoft.Winget.Source_8wekyb3d8bbwe\scrcpy-win64-v3.3.3"
```
_Don't forget to use the actual numbering from the version you are installing (v3.3.3 in this example)._
You can also add it to (user or system) PATH manually via 'Edit Environment Variables'.
## Connect the Android device
_Make sure that your device meets the [prerequisites](/README.md#prerequisites)._
Connect your device via USB and accept the connection with any mode. Both "Charging Only" and "File Transfer / Android Auto" should work. You can also use any other mode, the important part is to accept the following dialog ("Allow USB debugging?") for enabling ADB (Android Debug Bridge) between the computer and the device.
## Run
_Make sure that your device meets the [prerequisites](/README.md#prerequisites)._
Scrcpy is a command line application: it is mainly intended to be executed from
a terminal with command line arguments.