Switch back to ubuntu-20.04 runners, fix AppImage builder exec

This commit is contained in:
DevilXD
2024-01-20 11:09:06 +01:00
parent 8cfa43b52b
commit 0a4bef728e
2 changed files with 5 additions and 5 deletions

View File

@@ -79,7 +79,7 @@ jobs:
linux-pyinstaller:
name: Linux (PyInstaller)
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Checkout code
@@ -156,7 +156,7 @@ jobs:
linux-appimage:
name: Linux (AppImage)
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Checkout code
@@ -191,7 +191,7 @@ jobs:
- name: Create AppImage
env:
APPIMAGE_EXTRACT_AND_RUN: 1
APP_VERSION: ${{ steps.vars.outputs.app_version }}.${{ steps.vars.outputs.sha_short }}
APP_VERSION: ${{steps.vars.outputs.app_version}}.${{steps.vars.outputs.sha_short}}
run: |
./appimage-builder --recipe appimage/AppImageBuilder.yml

View File

@@ -22,7 +22,7 @@ script:
- cp -r "$SOURCE_DIR/../lang" "$SOURCE_DIR/../pickaxe.ico" "$SOURCE_DIR"/../*.py "$TARGET_APPDIR/usr/src"
- cp "$SOURCE_DIR/pickaxe.png" "$TARGET_APPDIR/usr/share/icons/hicolor/128x128/apps/io.github.devilxd.twitchdropsminer.png"
# Remove certifi from the line below if using Python 3.10+.
# Install requirements.
- python3 -m pip install --ignore-installed --prefix=/usr --root="$TARGET_APPDIR" -r "$SOURCE_DIR/../requirements.txt"
AppDir:
@@ -31,7 +31,7 @@ AppDir:
name: Twitch Drops Miner
icon: io.github.devilxd.twitchdropsminer
version: '{{APP_VERSION}}'
exec: usr/bin/python3
exec: usr/bin/python${{env.PYTHON_VERSION}}
exec_args: '${APPDIR}/usr/src/main.py $@'
apt: