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

Commit

Permalink
Update appimage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju authored Apr 19, 2020
1 parent 3af3956 commit 6c0ec5b
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,30 @@ 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
cp scrcpy AppDir/usr/bin/.
chmod +x AppDir/usr/bin/scrcpy
mkdir AppDir/usr/share/scrcpy
cp scrcpy-server AppDir/usr/share/scrcpy/.
wget https://dl.bintray.com/srevinsaju/guiscrcpy/scrcpy/scrcpy
wget https://dl.bintray.com/srevinsaju/guiscrcpy/scrcpy/scrcpy-server
mkdir -p AppDir/usr/local/bin
cp scrcpy AppDir/usr/local/bin/.
chmod +x AppDir/usr/local/bin/scrcpy
mkdir -p AppDir/usr/local/share/scrcpy
cp scrcpy-server AppDir/usr/local/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 -i '/APPDIR="${APPDIR:-${here}}"/aexport LD_LIBRARY_PATH="${APPDIR}/usr/lib:${LD_LIBRARY_PATH}" \nexport GUISCRCPY_SCRCPY="${APPDIR}/usr/local/bin/scrcpy"\nexport GUISCRCPY_ADB="${APPDIR}/usr/bin/adb"' AppDir/AppRun
- name: Reimage AppImage
run: |
rm ./guiscrcpy-x86_64.AppImage
./appimagetool-x86_64.AppImage --comp gzip AppDir -n
- name: Upload artifact
uses: actions/[email protected]
with:
name: guiscrcpy-x86_64.AppImage
path: guiscrcpy-x86_64.AppImage



0 comments on commit 6c0ec5b

Please sign in to comment.