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

Commit

Permalink
Add release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju committed Jul 26, 2020
1 parent 87247f3 commit 6a6df08
Show file tree
Hide file tree
Showing 6 changed files with 104 additions and 7 deletions.
97 changes: 97 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,103 @@ jobs:
path: guiscrcpy-x86_64.AppImage



AppImage-PySide2:
runs-on: ubuntu-18.04
strategy:
matrix:
version: ['3.8']

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.version }}
- name: Download dependencies
run: |
sudo apt install libxkbcommon0 libxcb-xkb-dev libxkbcommon-x11-0 libxcb-xkb1
- name: Test AppImage
run: |
sed -i 's,PyQt5,PySide2,g' requirements.txt
sed -i 's,PyQt5,PySide2,g' setup.py
python -m pip install python-appimage
echo $(realpath .) > appimage/requirements.txt
python -m python_appimage build app appimage \
--linux-tag=manylinux1_x86_64
- name: Extract AppImage
run: |
./guiscrcpy-x86_64.AppImage --appimage-extract
mv squashfs-root AppDir
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
chmod +x ./appimagetool-x86_64.AppImage
- name: Patch PyQt5
run: |
cp -L /usr/lib/x86_64-linux-gnu/libxkbcommon* AppDir/usr/lib/.
cp -L /usr/lib/x86_64-linux-gnu/libxcb-xkb.so.1 AppDir/usr/lib/.
- name: Download adb
run: |
wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip
unzip platform-tools-latest-linux.zip -d adb
cp adb/platform-tools/adb AppDir/usr/bin/.
- name: Download scrcpy
run: |
wget https://dl.bintray.com/srevinsaju/guiscrcpy/scrcpy/scrcpy113.tar.gz
tar -xf scrcpy113.tar.gz
mkdir -p AppDir/usr/bin
cp scrcpy113/scrcpy AppDir/usr/bin/.
chmod +x AppDir/usr/bin/scrcpy
mkdir -p AppDir/usr/share/scrcpy
cp scrcpy113/scrcpy-server AppDir/usr/share/scrcpy/.
- name: Download scrcpy binary deps
run: |
cp scrcpy113/lib/* AppDir/usr/lib/.
- name: Reimage AppImage
run: |
rm ./guiscrcpy-x86_64.AppImage
./appimagetool-x86_64.AppImage --comp gzip AppDir -n
mv guiscrcpy-x86_64.AppImage guiscrcpy-PySide2-x86_64.AppImage
- name: Upload artifact
uses: actions/[email protected]
with:
name: guiscrcpy-PySide2-continuous-x86_64.AppImage
path: guiscrcpy-PySide2-x86_64.AppImage


Windows-PySide2:
name: Windows-PySide2
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1

- name: Install dependencies
run: |
sed -i 's,PyQt5,PySide2,g' requirements.txt
sed -i 's,PyQt5,PySide2,g' setup.py
python -m pip install --upgrade pip
pip3 install PyInstaller
pip3 install -r requirements.txt
pip3 install .
echo Done
- name: Create .exe
run: |
python -m PyInstaller guiscrcpy-windows.spec
mv dist/guiscrcpy.exe dist/guiscrcpy-pyside2.exe
- name: Upload artifact
uses: actions/[email protected]
with:
# Artifact name
name: guiscrcpy-pyside2-continuous.exe
# Directory containing files to upload
path: dist/guiscrcpy-pyside2.exe


Windows:
name: Windows
runs-on: windows-latest
Expand Down
2 changes: 1 addition & 1 deletion guiscrcpy.desktop
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Desktop Entry]
Version=4.0.a4
Version=4.0.b1
Name=guiscrcpy
GenericName=guiscrcpy
Comment=Open Source Android Screen Mirroring System
Expand Down
2 changes: 1 addition & 1 deletion guiscrcpy/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
"""

VERSION = '4.0.a4'
VERSION = '4.0.b1'
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
long_description = \
"Open Source Android Screen Mirroring System by @srevinsaju"

requirements = ['PyQt5>=5.14,<5.16', 'pynput']
requirements = ['PyQt5>=5.14,<5.16', 'pynput', 'qtpy']
if platform.system() == 'Windows':
requirements.extend(['pywin32', 'psutil'])
elif platform.system() == 'Linux':
Expand All @@ -53,14 +53,14 @@

setup(
name='guiscrcpy',
version='4.0.a4',
version='4.0.b1',
description='An Open Source - Fast - Android Screen Mirroring system.',
long_description=long_description,
long_description_content_type='text/markdown',
license='GPL v3',
author='srevinsaju',
author_email="[email protected]",
packages=['guiscrcpy', 'guiscrcpy.lib.mapper', 'guiscrcpy.network', 'guiscrcpy.platform', 'guiscrcpy.theme', 'guiscrcpy.ui', 'guiscrcpy.ux'], # noqa: E501
packages=['guiscrcpy', 'guiscrcpy.lib.mapper', 'guiscrcpy.network', 'guiscrcpy.platform', 'guiscrcpy.theme', 'guiscrcpy.ui', 'guiscrcpy.ux'],
data_files=data_files,
extras_require={'pyqt5': 'PyQt5', 'pyside2': 'PySide2'},
url="https://srevinsaju.github.io/guiscrcpy",
Expand Down
2 changes: 1 addition & 1 deletion snap/gui/guiscrcpy.desktop
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Desktop Entry]
Version=4.0.a4
Version=4.0.b1
Name=guiscrcpy
GenericName=guiscrcpy
Comment=Open Source Android Screen Mirroring System
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: guiscrcpy
version: 4.0.a4
version: 4.0.b1
summary: An opensource GUI for android screen mirroring
description: |
A full fledged GUI integration for the award winning open source scrcpy, for
Expand Down

0 comments on commit 6a6df08

Please sign in to comment.