2023-03-04 07:56:35 +00:00
|
|
|
# On macOS
|
|
|
|
|
|
|
|
## Install
|
|
|
|
|
|
|
|
Scrcpy is available in [Homebrew]:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
brew install scrcpy
|
|
|
|
```
|
|
|
|
|
|
|
|
[Homebrew]: https://brew.sh/
|
|
|
|
|
|
|
|
You need `adb`, accessible from your `PATH`. If you don't have it yet:
|
|
|
|
|
|
|
|
```bash
|
2024-10-23 00:43:22 +00:00
|
|
|
brew install --cask android-platform-tools
|
2023-03-04 07:56:35 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Alternatively, Scrcpy is also available in [MacPorts], which sets up `adb` for you:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
sudo port install scrcpy
|
|
|
|
```
|
|
|
|
|
|
|
|
[MacPorts]: https://www.macports.org/
|
|
|
|
|
|
|
|
_See [build.md](build.md) to build and install the app manually._
|
|
|
|
|
|
|
|
|
|
|
|
## Run
|
|
|
|
|
2023-03-13 07:40:31 +00:00
|
|
|
_Make sure that your device meets the [prerequisites](/README.md#prerequisites)._
|
|
|
|
|
2023-03-04 07:56:35 +00:00
|
|
|
Once installed, run from a terminal:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
scrcpy
|
|
|
|
```
|
|
|
|
|
|
|
|
or with arguments (here to disable audio and record to `file.mkv`):
|
|
|
|
|
|
|
|
```bash
|
|
|
|
scrcpy --no-audio --record=file.mkv
|
|
|
|
```
|
|
|
|
|
|
|
|
Documentation for command line arguments is available:
|
|
|
|
- `man scrcpy`
|
|
|
|
- `scrcpy --help`
|
|
|
|
- on [github](/README.md)
|