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

Commit 8903d0b

Browse files
authored
Merge pull request #310 from srevinsaju/main-revert-new
2022.6.1 Release
2 parents 97c0bcd + ce7e56d commit 8903d0b

27 files changed

+232877
-113927
lines changed

.github/workflows/continuous.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ jobs:
4444
run: git fetch --tags --force
4545
- name: Build
4646
run: |
47-
# force usage of PySide6 to prevent having surprises with pyinstaller.
48-
sed -i 's/qtpy/PySide6/g' **/*.py
47+
# force usage of PySide2 to prevent having surprises with pyinstaller.
48+
sed -i 's/qtpy/PySide2/g' **/*.py
4949
docker build -t guiscrcpy-appimage-build -f scripts/ci/pyappimage/Dockerfile .
5050
docker run --rm -v $(pwd):/usr/src guiscrcpy-appimage-build
5151
ls -al
@@ -105,8 +105,8 @@ jobs:
105105
runs-on: windows-latest
106106
strategy:
107107
matrix:
108-
arch: ['x64']
109-
qt: ['PySide6']
108+
arch: ['x64', 'x86']
109+
qt: ['PyQt5', 'PySide2']
110110
steps:
111111
- name: Checkout
112112
uses: actions/checkout@v1
@@ -146,7 +146,7 @@ jobs:
146146
strategy:
147147
matrix:
148148
arch: ['x64']
149-
qt: ['PySide6']
149+
qt: ['PySide2']
150150
steps:
151151
- name: Checkout
152152
uses: actions/checkout@v1
@@ -194,8 +194,11 @@ jobs:
194194
ls -alHR
195195
wget -q https://github.com/srevinsaju/pyuploadtool/releases/download/continuous/pyuploadtool-x86_64.AppImage && chmod +x pyuploadtool-x86_64.AppImage
196196
./pyuploadtool-x86_64.AppImage \
197-
guiscrcpy-PySide6-x64-continuous.app/guiscrcpy-PySide6-x64 \
198-
guiscrcpy-PySide6-x64-continuous.exe/guiscrcpy-PySide6-x64.exe \
197+
guiscrcpy-PyQt5-x64-continuous.exe/guiscrcpy-PyQt5-x64.exe \
198+
guiscrcpy-PyQt5-x86-continuous.exe/guiscrcpy-PyQt5-x86.exe \
199+
guiscrcpy-PySide2-x64-continuous.app/guiscrcpy-PySide2-x64 \
200+
guiscrcpy-PySide2-x64-continuous.exe/guiscrcpy-PySide2-x64.exe \
201+
guiscrcpy-PySide2-x86-continuous.exe/guiscrcpy-PySide2-x86.exe \
199202
guiscrcpy-m-continuous-x86_64.AppImage/guiscrcpy*x86_64.AppImage \
200203
guiscrcpy-python/guiscrcpy*.* \
201204
guiscrcpy-r-continuous-x86_64.AppImage/guiscrcpy*.AppImage

.github/workflows/pythonapp.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Install dependencies
2626
run: |
2727
python -m pip install --upgrade poetry wheel
28-
poetry install -E PySide6
28+
poetry install -E PySide2
2929
poetry build
3030
pip3 install dist/*.whl
3131

guiscrcpy/cli.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,17 @@ def show_version(ctx, param, value): # noqa:
4242
if os.getenv("APPDIR"):
4343
click.echo("AppDir: {}".format(os.getenv("APPDIR")))
4444
import inspect
45+
from PyQt5 import Qt
4546

4647
_pyqt5_version = [
4748
"%s = %s" % (k, v)
4849
for k, v in vars(Qt).items()
4950
if k.lower().find("version") >= 0 and not inspect.isbuiltin(v)
5051
]
5152
print()
53+
print("== PyQt5 Version ==")
54+
print("\n".join(sorted(_pyqt5_version)))
55+
print()
5256
if platform.system() == "Linux":
5357
print("== CairoSVG version ==")
5458
from cairosvg import VERSION as CAIRO_VERSION # noqa:
@@ -85,7 +89,7 @@ def show_license(ctx, param, value): # noqa:
8589
"--theme",
8690
"theme",
8791
default="Breeze",
88-
help="Set the default theme (based on PyQt "
92+
help="Set the default theme (based on PyQt5 "
8993
"themes - Fusion, Breeze, Windows) "
9094
"(stored in configuration, override by --theme-no-cfg)",
9195
)

guiscrcpy/install/finder.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def open_exe_name_dialog(parent, appname):
77
file_dialog.setFilter(QDir.AllEntries | QDir.Hidden)
88
file_dialog.setFileMode(QFileDialog.ExistingFile)
99
file_dialog.setWindowTitle(
10-
f"{appname} could not be found. Please locate it manually"
10+
f"{appname} could not be found. Please locate in" "manually"
1111
)
1212
if file_dialog.exec():
1313
file_name = file_dialog.selectedFiles()
File renamed without changes.

guiscrcpy/ui/pyqt5/downloader.py

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# -*- coding: utf-8 -*-
2+
3+
# Form implementation generated from reading ui file 'guiscrcpy/ui/downloader.ui'
4+
#
5+
# Created by: PyQt5 UI code generator 5.15.0
6+
#
7+
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
8+
# run again. Do not edit this file unless you know what you are doing.
9+
10+
11+
from PyQt5 import QtCore, QtGui, QtWidgets
12+
13+
14+
class Ui_Initializer(object):
15+
def setupUi(self, Initializer):
16+
Initializer.setObjectName("Initializer")
17+
Initializer.resize(222, 320)
18+
icon = QtGui.QIcon()
19+
icon.addPixmap(QtGui.QPixmap(":/res/ui/guiscrcpy_logo.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
20+
Initializer.setWindowIcon(icon)
21+
self.widget = QtWidgets.QWidget(Initializer)
22+
self.widget.setGeometry(QtCore.QRect(0, 0, 221, 311))
23+
self.widget.setObjectName("widget")
24+
self.verticalLayout = QtWidgets.QVBoxLayout(self.widget)
25+
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
26+
self.verticalLayout.setObjectName("verticalLayout")
27+
self.label_2 = QtWidgets.QLabel(self.widget)
28+
self.label_2.setText("")
29+
self.label_2.setTextFormat(QtCore.Qt.PlainText)
30+
self.label_2.setPixmap(QtGui.QPixmap(":/res/ui/guiscrcpy_logo.png"))
31+
self.label_2.setScaledContents(True)
32+
self.label_2.setAlignment(QtCore.Qt.AlignCenter)
33+
self.label_2.setWordWrap(True)
34+
self.label_2.setObjectName("label_2")
35+
self.verticalLayout.addWidget(self.label_2)
36+
self.stat = QtWidgets.QLabel(self.widget)
37+
font = QtGui.QFont()
38+
font.setFamily("Titillium Web")
39+
font.setPointSize(30)
40+
font.setBold(True)
41+
font.setWeight(75)
42+
self.stat.setFont(font)
43+
self.stat.setScaledContents(False)
44+
self.stat.setAlignment(QtCore.Qt.AlignCenter)
45+
self.stat.setObjectName("stat")
46+
self.verticalLayout.addWidget(self.stat)
47+
self.label_3 = QtWidgets.QLabel(self.widget)
48+
self.label_3.setAlignment(QtCore.Qt.AlignCenter)
49+
self.label_3.setObjectName("label_3")
50+
self.verticalLayout.addWidget(self.label_3)
51+
52+
self.retranslateUi(Initializer)
53+
QtCore.QMetaObject.connectSlotsByName(Initializer)
54+
55+
def retranslateUi(self, Initializer):
56+
_translate = QtCore.QCoreApplication.translate
57+
Initializer.setWindowTitle(_translate("Initializer", "Initializing"))
58+
self.stat.setText(_translate("Initializer", "guiscrcpy"))
59+
self.label_3.setText(_translate("Initializer", "Initializing"))
60+
from . import rsrc_rc

0 commit comments

Comments
 (0)