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
87247f3
commit 6a6df08
Showing
6 changed files
with
104 additions
and
7 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 |
---|---|---|
|
@@ -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 | ||
|
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
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 |
---|---|---|
|
@@ -20,4 +20,4 @@ | |
""" | ||
|
||
VERSION = '4.0.a4' | ||
VERSION = '4.0.b1' |
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 |
---|---|---|
|
@@ -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': | ||
|
@@ -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", | ||
|
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
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