Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
Fix support for scrcpy binaries 🎉 (#92)
Browse files Browse the repository at this point in the history
* Update appimage.yml

* Update appimage.yml

* Update appimage.yml

* Update appimage.yml

* Fix binaries
  • Loading branch information
srevinsaju authored Apr 18, 2020
1 parent 3bda26f commit cda15c6
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,21 @@ jobs:
- name: Download scrcpy
run: |
wget https://dl.bintray.com/srevinsaju/guiscrcpy/1.12.1/scrcpy
wget https://dl.bintray.com/srevinsaju/guiscrcpy/1.12.1/scrcpy-server
wget https://dl.bintray.com/srevinsaju/guiscrcpy/scrcpy/scrcpy
wget https://dl.bintray.com/srevinsaju/guiscrcpy/scrcpy/scrcpy-server
cp scrcpy AppDir/usr/bin/.
chmod +x AppDir/usr/bin/scrcpy
mkdir AppDir/usr/share/scrcpy
cp scrcpy-server AppDir/usr/share/scrcpy/.
- name: Download scrcpy binary deps
run: |
wget https://dl.bintray.com/srevinsaju/guiscrcpy/scrcpy/scrcpy_processed.tar.gz
tar -xf scrcpy_processed.tar.gz
cp scrcpy_processed/* AppDir/usr/lib/.
- name: Patch Appimage to detect adb / scrcpy
run: |
sed '/APPDIR="${APPDIR:-${here}}"/aexport LD_LIBRARY_PATH="${APPDIR}/usr/lib:${LD_LIBRARY_PATH}" \nexport GUISCRCPY_SCRCPY="${APPDIR}/usr/bin/scrcpy"\nexport GUISCRCPY_ADB="${APPDIR}/usr/bin/adb"' AppRun > AppRun
- name: Reimage AppImage
run: |
rm ./guiscrcpy-x86_64.AppImage
Expand Down

0 comments on commit cda15c6

Please sign in to comment.