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

Commit

Permalink
Merge branch 'master' into beta-37
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju authored Apr 18, 2020
2 parents 908e961 + 3bda26f commit 61c08d7
Show file tree
Hide file tree
Showing 8 changed files with 107 additions and 1 deletion.
59 changes: 59 additions & 0 deletions .github/workflows/appimage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Thanks @niess (https://github.com/niess) for python-appimage, creating appimages for Python is easy as pie!!

name: AppImage
on: [push]

jobs:
Test:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['3.8']

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.version }}

- name: Test AppImage
run: |
python -m pip install python-appimage
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: 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/1.12.1/scrcpy
wget https://dl.bintray.com/srevinsaju/guiscrcpy/1.12.1/scrcpy-server
cp scrcpy AppDir/usr/bin/.
chmod +x AppDir/usr/bin/scrcpy
mkdir AppDir/usr/share/scrcpy
cp scrcpy-server AppDir/usr/share/scrcpy/.
- name: Reimage AppImage
run: |
rm ./guiscrcpy-x86_64.AppImage
./appimagetool-x86_64.AppImage --comp gzip AppDir -n
- name: Upload artifact
uses: actions/[email protected]
with:
name: guiscrcpy-x86_64.AppImage
path: guiscrcpy-x86_64.AppImage



18 changes: 18 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
fonttools = "*"
psutil = "5.7.0"
pynput = "1.6"
pyshortcuts = "1.7"
pystray = "0.14.4"
GitPython = "3.1.1"
PyQt5 = "*"

[requires]
python_version = "3.8"
1 change: 1 addition & 0 deletions appimage/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ python-executable }} -s ${APPDIR}/opt/python{{ python-version }}/bin/guiscrcpy "$@"
18 changes: 18 additions & 0 deletions appimage/guiscrcpy.appdata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>guiscrcpy</id>
<name>guiscrcpy</name>
<metadata_license>MIT</metadata_license>
<project_license>GPL3+</project_license>
<name>Tasmotizer</name>
<summary>Android Screen Mirroring Software</summary>
<description>
<p> The open source android screen mirroring system built for the award winning scrcpy
</p>
</description>
<launchable type="desktop-id">guiscrcpy.desktop</launchable>
<url type="homepage">https://github.com/srevinsaju/guiscrcpy</url>
<provides>
<binary>python{{ python-version }}</binary>
</provides>
</component>
9 changes: 9 additions & 0 deletions appimage/guiscrcpy.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Desktop Entry]
Name=guiscrcpy
Exec=guiscrcpy
Type=Application
Icon=guiscrcpy
Terminal=false
Categories=Development;
Keywords=Python;Screen;Mirroring;Android
StartupWMClass=guiscrcpy
Binary file added appimage/guiscrcpy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions appimage/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
guiscrcpy
2 changes: 1 addition & 1 deletion guiscrcpy/lib/ver.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
class version:
def __init__(self):
self.commit = VERSION

def get_commit(self):
return self.commit

0 comments on commit 61c08d7

Please sign in to comment.