mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
build AppImage at push & pull-requests on master
creates AppImage at push & pull-request on master branch and uploads it as artifact. Update create_appimage.sh
This commit is contained in:
parent
adbe7908c6
commit
49984b6005
3 changed files with 143 additions and 0 deletions
23
.github/scripts/setup_scrcpy.sh
vendored
Normal file
23
.github/scripts/setup_scrcpy.sh
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
sudo apt update
|
||||
sudo apt install ffmpeg libsdl2-2.0-0 adb libusb-1.0-0 -y
|
||||
sudo apt install gcc git pkg-config meson ninja-build libsdl2-dev \
|
||||
libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev \
|
||||
libusb-1.0-0-dev -y
|
||||
|
||||
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 \
|
||||
-O scrcpy-server
|
||||
|
||||
meson x --buildtype=release --strip -Db_lto=true \
|
||||
-Dprebuilt_server=scrcpy-server
|
||||
ninja -Cx
|
||||
|
||||
# icon name should be same as binary name for appimage creation
|
||||
cp app/data/icon.png app/data/scrcpy.png
|
||||
|
||||
cd ../
|
||||
Loading…
Add table
Add a link
Reference in a new issue