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

Commit

Permalink
chore: release v4.7.3 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju committed Sep 24, 2020
1 parent 6b24d7f commit 7e2c1da
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 74 deletions.
2 changes: 1 addition & 1 deletion guiscrcpy/version.py
Expand Up @@ -20,4 +20,4 @@
"""

VERSION = 'v4.7.3'
VERSION = "v4.7.3"
67 changes: 33 additions & 34 deletions setup.py
Expand Up @@ -19,61 +19,60 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import os
import platform

from setuptools import find_packages
from setuptools import setup
from setuptools import find_packages
import os
import platform

try:
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, "README.md"),
encoding="utf-8") as f:
with open(
os.path.join(this_directory, 'README.md'),
encoding='utf-8'
) as f:
long_description = f.read()
except FileNotFoundError:
long_description = "Open Source Android Screen Mirroring System by @srevinsaju"
long_description = \
"Open Source Android Screen Mirroring System by @srevinsaju"

requirements = ["PyQt5>=5.14,<5.16", "pynput", "qtpy", "click", "colorama"]
if platform.system() == "Windows":
requirements.extend(["pywin32", "psutil"])
elif platform.system() == "Linux":
requirements.extend(["psutil", "cairosvg"])
requirements = ['PyQt5>=5.14,<5.16', 'pynput', 'qtpy', 'click', 'colorama']
if platform.system() == 'Windows':
requirements.extend(['pywin32', 'psutil'])
elif platform.system() == 'Linux':
requirements.extend(['psutil', 'cairosvg'])

data_files = [
("share/applications", ["guiscrcpy.desktop"]),
("share/icons/hicolor/scalable/apps", ["appimage/guiscrcpy.png"]),
]
('share/applications', ['guiscrcpy.desktop']),
('share/icons/hicolor/scalable/apps', ['appimage/guiscrcpy.png']),
]

setup(
name='guiscrcpy',
version='v4.7.3',
description='An Open Source - Fast - Android Screen Mirroring system.',
name="guiscrcpy",
version="v4.7.3",
description="An Open Source - Fast - Android Screen Mirroring system.",
long_description=long_description,
long_description_content_type="text/markdown",
license="GPL v3",
author="srevinsaju",
long_description_content_type='text/markdown',
license='GPL v3',
author='srevinsaju',
author_email="srevin03@gmail.com",
packages=find_packages(),
data_files=data_files,
extras_require={
"pyqt5": "PyQt5",
"pyside2": "PySide2"
},
extras_require={'pyqt5': 'PyQt5', 'pyside2': 'PySide2'},
url="https://srevinsaju.github.io/guiscrcpy",
download_url="https://github.com/srevinsaju/guiscrcpy/archive/master.zip",
include_package_data=True,
install_requires=requirements,
scripts=["scripts/guiscrcpy"],
entry_points={"console_scripts":
["guiscrcpy = guiscrcpy.cli:cli"]}, # noqa: E501
entry_points={'console_scripts': ['guiscrcpy = guiscrcpy.cli:cli']}, # noqa: E501
classifiers=[
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.8",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.8',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)'
],
)
80 changes: 41 additions & 39 deletions snap/snapcraft.yaml
Expand Up @@ -2,15 +2,15 @@ name: guiscrcpy
version: v4.7.3
summary: An opensource GUI for android screen mirroring
description: |
A full fledged GUI integration for the award winning open source scrcpy, for
A full fledged GUI integration for the award winning open source scrcpy, for
Android Screen mirroring
grade: stable
confinement: strict
grade: stable
confinement: strict

base: core18

architectures:
- build-on: amd64
- build-on: amd64

apps:
scrcpy:
Expand All @@ -21,83 +21,85 @@ apps:
LIBGL_DRIVERS_PATH: "$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/dri"
SCRCPY_SERVER_PATH: "$SNAP/usr/local/share/scrcpy/scrcpy-server"

adb:
adb:
command: usr/bin/adb
environment:
LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/android/"

guiscrcpy:
command: bin/guiscrcpy
environment:
environment:
PATH: $SNAP/lib:$SNAP/usr/lib:$SNAP/bin:$SNAP/usr/bin:$SNAP/usr/local/bin:$PATH
GUISCRCPY_SCRCPY: "$SNAP/usr/local/bin/scrcpy"
GUISCRCPY_ADB: "$SNAP/usr/bin/adb"
SCRCPY_SERVER_PATH: "$SNAP/usr/local/share/scrcpy/scrcpy-server"
GUISCRCPY_SNAP: "TRUE"
command-chain: &command-chain-common
- bin/debian-multiarch-triplet-provider-launch
- bin/classic-launch
- bin/desktop-launch
- bin/guiscrcpy
- bin/debian-multiarch-triplet-provider-launch
- bin/classic-launch
- bin/desktop-launch
- bin/guiscrcpy
desktop: share/applications/guiscrcpy.desktop

parts:

debian-multiarch-triplet-provider-launch:
plugin: nil
stage-snaps:
- debian-multiarch-triplet-provider-launch
- debian-multiarch-triplet-provider-launch

classic-launch:
plugin: nil
stage-snaps:
- classic-launch
- classic-launch

# Remote part for support of various desktop technologies
# Refer: https://github.com/ubuntu/snapcraft-desktop-helpers/blob/master/snapcraft.yaml
desktop-qt5:
build-packages:
- build-essential
- qtbase5-dev
- dpkg-dev
- build-essential
- qtbase5-dev
- dpkg-dev
make-parameters:
- FLAVOR=qt5
- FLAVOR=qt5
plugin: make
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
source-subdir: qt
stage-packages:
- libxkbcommon0
- ttf-ubuntu-font-family
- dmz-cursor-theme
- light-themes
- adwaita-icon-theme
- gnome-themes-standard
- shared-mime-info
- libqt5gui5
- libgdk-pixbuf2.0-0
- libqt5svg5
- try:
- appmenu-qt5
- locales-all
- xdg-user-dirs
- fcitx-frontend-qt5
- libxkbcommon0
- ttf-ubuntu-font-family
- dmz-cursor-theme
- light-themes
- adwaita-icon-theme
- gnome-themes-standard
- shared-mime-info
- libqt5gui5
- libgdk-pixbuf2.0-0
- libqt5svg5
- try:
- appmenu-qt5
- locales-all
- xdg-user-dirs
- fcitx-frontend-qt5

scrcpy-server:
plugin: nil
override-pull: wget https://github.com/Genymobile/scrcpy/releases/download/v1.15.1/scrcpy-server-v1.15.1
override-pull:
wget https://github.com/Genymobile/scrcpy/releases/download/v1.15.1/scrcpy-server-v1.15.1
override-build: |
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/local/share/scrcpy/
cp scrcpy-server-v1.15.1 $SNAPCRAFT_PART_INSTALL/usr/local/share/scrcpy/scrcpy-server
scrcpy:
source: https://github.com/Genymobile/scrcpy.git
plugin: meson
meson-parameters:
meson-parameters:
- --buildtype=release
- --strip
- --strip
- -Db_lto=true
- -Dcompile_server=false
override-pull: |
snapcraftctl pull
snapcraftctl set-version $(git describe --tag)
snapcraftctl pull
snapcraftctl set-version $(git describe --tag)
build-packages:
- make
- gcc
Expand All @@ -117,8 +119,7 @@ parts:
- adb

guiscrcpy:
after:
[desktop-qt5, classic-launch, debian-multiarch-triplet-provider-launch]
after: [desktop-qt5, classic-launch, debian-multiarch-triplet-provider-launch]
# See 'snapcraft plugins'
plugin: python
python-version: python3
Expand All @@ -139,5 +140,6 @@ plugs:
adb:
interface: content
target: $SNAP/usr/bin

# some parts are inherited from https://github.com/sisco311/scrcpy-snap/blob/master/snap/snapcraft.yaml
# Thanks @sisco311 for the amazing snap!!
# Thanks @sisco311 for the amazing snap!!

0 comments on commit 7e2c1da

Please sign in to comment.