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

Commit

Permalink
ci: improve the version in guiscrcpy appimage
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju committed Sep 14, 2020
1 parent 4dd63de commit 3e42236
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,15 @@ jobs:
chmod +x appimagetool-x86_64.AppImage
ARCH=x86_64 ./appimagetool*.AppImage -n guiscrcpy.AppDir
./guiscrcpy*.AppImage --appimage-extract
./appimagetool*.AppImage squashfs-root -n -u 'gh-releases-zsync|srevinsaju|guiscrcpy|continuous|guiscrcpy-*-r-*.AppImage.zsync' guiscrcpy-$(ldd --version | grep 'ldd ' | grep -o ').[0-9].[0-9][0-9]' | grep -o '[0-9].[0-9][0-9]')-r-$(cat setup.py | grep 'version=' | grep -P -o '\d\.\d\.\d+')-$(uname -m).AppImage
export GUISCRCPY_VERSION="$(cat setup.py | grep 'version=' | grep -P -o '\d\.\d\.\d+').dev"
export GUISCRCPY_GLIB_VERSION="glibc$(ldd --version | grep 'ldd ' | grep -o ')"
export GUISCRCPY_MACHINE="$(uname -m)"
export GUISCRCPY_TYPE="r"
./appimagetool*.AppImage squashfs-root -n \
-u 'gh-releases-zsync|srevinsaju|guiscrcpy|continuous|guiscrcpy-*.r.*.AppImage.zsync' \
guiscrcpy-$GUISCRCPY_VERSION.$GUISCRCPY_TYPE.$GUISCRCPY_GLIB_VERSION-$GUISCRCPY_MACHINE.AppImage
mkdir dist
mv guiscrcpy-$(git describe --tags --match '*[0-9]*')-$(uname -m).AppImage* dist/.
mv guiscrcpy-$GUISCRCPY_VERSION.$GUISCRCPY_TYPE.$GUISCRCPY_GLIB_VERSION-$GUISCRCPY_MACHINE.AppImage* dist/.
- name: Install Destop Environment
Expand Down Expand Up @@ -174,9 +180,15 @@ jobs:
chmod +x appimagetool-x86_64.AppImage
cp pyappimage/AppRun.standalone.sh guiscrcpy.AppDir/AppRun
chmod +x guiscrcpy.AppDir/AppRun
ARCH=x86_64 ./appimagetool*.AppImage guiscrcpy.AppDir -n -u 'gh-releases-zsync|srevinsaju|guiscrcpy|continuous|guiscrcpy-min*-m-*.AppImage.zsync' guiscrcpy-min-$(ldd --version | grep 'ldd ' | grep -o ').[0-9].[0-9][0-9]' | grep -o '[0-9].[0-9][0-9]')-m-$(cat setup.py | grep 'version=' | grep -P -o '\d\.\d\.\d+')-$(uname -m).AppImage
export GUISCRCPY_VERSION="$(cat setup.py | grep 'version=' | grep -P -o '\d\.\d\.\d+').dev"
export GUISCRCPY_GLIB_VERSION="glibc$(ldd --version | grep 'ldd ' | grep -o ')"
export GUISCRCPY_MACHINE="$(uname -m)"
export GUISCRCPY_TYPE="m"
./appimagetool*.AppImage squashfs-root -n \
-u 'gh-releases-zsync|srevinsaju|guiscrcpy|continuous|guiscrcpy-*.r.*.AppImage.zsync' \
guiscrcpy-min-$GUISCRCPY_VERSION.$GUISCRCPY_TYPE.$GUISCRCPY_GLIB_VERSION-$GUISCRCPY_MACHINE.AppImage
mkdir dist
mv guiscrcpy-$(git describe --tags --match '*[0-9]*')-$(uname -m).AppImage* dist/.
mv guiscrcpy-min-$GUISCRCPY_VERSION.$GUISCRCPY_TYPE.$GUISCRCPY_GLIB_VERSION-$GUISCRCPY_MACHINE.AppImage* dist/.
- name: Install Destop Environment
run: |
Expand Down

0 comments on commit 3e42236

Please sign in to comment.