mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-20 03:25:03 +00:00
More macOS specific changes in README
This commit is contained in:
parent
1d8adfc7d5
commit
a8274c2b49
1 changed files with 34 additions and 1 deletions
35
README.md
35
README.md
|
@ -127,7 +127,7 @@ brew install sdl2 ffmpeg
|
|||
brew install pkg-config meson
|
||||
```
|
||||
|
||||
Additionally, if you want to build the server, install Java 8
|
||||
Additionally, if you want to build the server, install Java 8
|
||||
from Caskroom, and make it avaliable from the `PATH`:
|
||||
```bash
|
||||
brew tap caskroom/versions
|
||||
|
@ -136,6 +136,39 @@ export JAVA_HOME="$(/usr/libexec/java_home --version 1.8)"
|
|||
export PATH="$JAVA_HOME/bin:$PATH"
|
||||
```
|
||||
|
||||
If you don't need to build the server, you can use [this unofficial Homebrew formula](https://github.com/stek29/homebrew-core/blob/3eb5ea5083fc8285d00a4363d64ea3bf68bc98dd/Formula/scrcpy.rb)
|
||||
to install scrcpy.
|
||||
|
||||
_Notes about common steps when building server_
|
||||
Here are macOS/brew specific TLDR commands to get everything up and running:
|
||||
```bash
|
||||
# Install Android SDK
|
||||
brew cask install android-sdk
|
||||
export ANDROID_HOME="/usr/local/share/android-sdk"
|
||||
|
||||
# Install platform-tools
|
||||
sdkmanager platform-tools
|
||||
|
||||
# Accept all licenses
|
||||
sdkmanager --licenses
|
||||
|
||||
# Clone repo if you haven't done it already
|
||||
git clone https://github.com/Genymobile/scrcpy.git
|
||||
cd scrcpy
|
||||
|
||||
# Build
|
||||
meson x --buildtype release --strip -Db_lto=true
|
||||
cd x
|
||||
ninja
|
||||
|
||||
# Run
|
||||
export ADB="$ANDROID_HOME/platform-tools/adb"
|
||||
ninja run
|
||||
|
||||
# You may want to add $ADB to your rc file, or
|
||||
# add $ANDROID_HOME/platform-tools to your PATH
|
||||
```
|
||||
|
||||
### Common steps
|
||||
|
||||
Install the [Android SDK] (_Android Studio_), and set `ANDROID_HOME` to
|
||||
|
|
Loading…
Add table
Reference in a new issue