Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Packaging] Add appimage recipe #735

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/appimage-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release for appimage
on:
push:
tags:
- v*
workflow_dispatch:

jobs:
build-n-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.10"
- name: Build
run: |
python -m pip install --upgrade pip
pip install pyqt5
pip install -e .[win32,battery]
pip install python-appimage
- name: Bundle
run: python-appimage build app -p 3.10 appimage_recipe/
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: FeelUOwn-x86_64.AppImage
path: FeelUOwn-x86_64.AppImage
- name: Upload to release page
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: FeelUOwn-x86_64.AppImage
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
*.swo
*.whl

*.desktop
*.md~
*.py~
/*.AppImage

sphinx_doc/build
test.py
Expand All @@ -33,7 +33,6 @@ __pycache__
.ipynb_checkpoints
*.DS_Store
*.un~
*.desktop
app.command
*.log

Expand Down
12 changes: 12 additions & 0 deletions appimage_recipe/application.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Desktop Entry]
Type=Application
Name=FeelUOwn
Comment=FeelUOwn Launcher
Exec=feeluown --log-to-file
Icon=feeluown
Categories=AudioVideo;Audio;Player;Qt;
Terminal=false
StartupNotify=true
StartupWMClass=FeelUOwn
X-AppImage-Name=FeelUOwn
X-AppImage-Version=1.0.0
Binary file added appimage_recipe/application.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions appimage_recipe/application.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>feeluown</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0</project_license>
<name>FeelUOwn</name>
<summary>Open, modify and create compressed archive files</summary>
<description>
<p>FeelUOwn Launcher</p>
</description>
<launchable type="desktop-id">feeluown.desktop</launchable>
<url type="homepage">https://github.com/feeluown/FeelUOwn</url>
<screenshots>
<screenshot type="default">
<image>https://user-images.githubusercontent.com/4962134/235288158-39e6e01d-74f4-4f14-b942-7af924fc6a90.png</image>
</screenshot>
</screenshots>
<provides>
<id>feeluown.desktop</id>
</provides>
</component>
1 change: 1 addition & 0 deletions appimage_recipe/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ python-executable }} -m feeluown "$@"
Binary file added appimage_recipe/feeluown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions appimage_recipe/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# run deps
janus
requests
qasync
tomlkit
packaging
pydantic>=1.10
mutagen>=1.37
feeluown
fuo-netease>=0.4.2
fuo-qqmusic>=0.2
fuo-kuwo>=0.1.1
feeluown-bilibili
secretstorage
pycryptodome
PyQt5
Loading