get latest scrcpy-server automatically

This commit is contained in:
aditya24raj 2022-06-08 09:41:43 +05:30 committed by GitHub
parent f02bb23e6f
commit fbf515e0ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,8 @@ sudo rm -rf scrcpy
git clone https://github.com/Genymobile/scrcpy
cd scrcpy
wget https://github.com/Genymobile/scrcpy/releases/download/v1.23/scrcpy-server-v1.23 \
latest_tag=$(git describe --tags --abbrev=0)
wget https://github.com/Genymobile/scrcpy/releases/download/$latest_tag/scrcpy-server-$latest_tag \
-O scrcpy-server
meson x --buildtype=release --strip -Db_lto=true \