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
Showing
8 changed files
with
107 additions
and
1 deletion.
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 |
---|---|---|
@@ -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 | ||
|
||
|
||
|
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 |
---|---|---|
@@ -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" |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{{ python-executable }} -s ${APPDIR}/opt/python{{ python-version }}/bin/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
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> |
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 |
---|---|---|
@@ -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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,6 @@ | |
class version: | ||
def __init__(self): | ||
self.commit = VERSION | ||
|
||
def get_commit(self): | ||
return self.commit |