This repository has been archived by the owner on Dec 29, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3af3956
commit 6c0ec5b
Showing
1 changed file
with
16 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
||
|