1
0
Fork 0
mirror of synced 2024-06-02 02:34:40 +12:00

Fix appimage workflow

This commit is contained in:
Dummerle 2021-12-07 23:07:30 +01:00
parent fc1f91e758
commit 2e0285760d
No known key found for this signature in database
GPG key ID: AB68CC59CA39F2F1
2 changed files with 10 additions and 18 deletions

View file

@ -1,14 +1,4 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "Test" name: "Test"
on: on:
@ -37,9 +27,7 @@ jobs:
pip install -r requirements.txt pip install -r requirements.txt
- name: Install legendary - name: Install legendary
run: | run: |
pushd legendary pip install ./rare/legendary
python setup.py install
popd
- name: Analysing the code with pylint - name: Analysing the code with pylint
run: | run: |
pylint -E rare --disable=E0611,E1123,E1120 --ignore=ui,singleton.py --extension-pkg-whitelist=PyQt5 pylint -E rare --disable=E0611,E1123,E1120 --ignore=ui,singleton.py --extension-pkg-whitelist=PyQt5

View file

@ -12,8 +12,8 @@ script:
- cp AppDir/usr/src/rare/__main__.py AppDir/usr/src/__main__.py - cp AppDir/usr/src/rare/__main__.py AppDir/usr/src/__main__.py
- cp AppDir/usr/src/rare/resources/images/Rare.png AppDir/usr/share/icons/hicolor/256x256/apps/ - cp AppDir/usr/src/rare/resources/images/Rare.png AppDir/usr/share/icons/hicolor/256x256/apps/
# Install application dependencies # Install application dependencies
- python3 -m pip install --system --ignore-installed --prefix=/usr --root=AppDir -r Rare/requirements.txt - python3 -m pip install --system --ignore-installed --prefix=/usr --root=AppDir pypresence qtawesome
- python3 -m pip install --system --ignore-installed --prefix=/usr --root=AppDir ./Rare/legendary - python3 -m pip install --system --ignore-installed --prefix=/usr --root=AppDir ./Rare/rare/legendary
AppDir: AppDir:
path: AppDir path: AppDir
@ -21,7 +21,7 @@ AppDir:
id: org.dummerle.rare id: org.dummerle.rare
name: Rare name: Rare
icon: Rare icon: Rare
version: 1.5.0 version: 1.7.0
exec: usr/bin/python3 exec: usr/bin/python3
exec_args: $APPDIR/usr/src/__main__.py $@ exec_args: $APPDIR/usr/src/__main__.py $@
apt: apt:
@ -44,6 +44,9 @@ AppDir:
- python3-pkg-resources - python3-pkg-resources
- python3-distutils - python3-distutils
- python3-pyqt5 - python3-pyqt5
- python3-pyqt5
- python3-psutil
- python3-requests
runtime: runtime:
env: env:
@ -80,6 +83,7 @@ AppDir:
image: appimagecrafters/tests-env:ubuntu-xenial image: appimagecrafters/tests-env:ubuntu-xenial
command: ./AppRun command: ./AppRun
use_host_x: true use_host_x: true
AppImage: AppImage:
arch: x86_64 arch: x86_64
update-information: gh-releases-zsync|Dummerle|Rare|latest|Rare-*x86_64.AppImage.zsync update-information: gh-releases-zsync|Dummerle|Rare|latest|Rare*.AppImage.zsync