diff --git a/.github/workflows/appimage.yml b/.github/workflows/appimage.yml index eec8a5c9..22628a72 100644 --- a/.github/workflows/appimage.yml +++ b/.github/workflows/appimage.yml @@ -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