Skip to content

Updated AppImageBuilder.yml to change the executable to Python 3 and … #15

Updated AppImageBuilder.yml to change the executable to Python 3 and …

Updated AppImageBuilder.yml to change the executable to Python 3 and … #15

name: Build AppImage (Linux)
on:
push:
branches: [ master ]
tags: [ 'v*', '*.*.*' ]
pull_request:
branches: [ master ]
jobs:
appimage:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies and appimage-builder
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
squashfs-tools zsync desktop-file-utils appstream file patchelf libglib2.0-bin fakeroot \
git meson ninja-build python3-pip python3-setuptools python3-wheel ca-certificates \
python3-gi \
libgtksourceview-5-dev libgtk-4-dev libadwaita-1-dev libglib2.0-dev libpango1.0-dev pkg-config gobject-introspection
python -m pip install --upgrade pip
python -m pip install --user "appimage-builder==0.8.2"
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Build and install blueprint-compiler (v0.18.0)
run: |
git clone --depth=1 --branch v0.18.0 https://gitlab.gnome.org/GNOME/blueprint-compiler.git
cd blueprint-compiler
export PATH="/usr/bin:$PATH"
env PYTHON=/usr/bin/python3 meson setup build
ninja -C build
sudo meson install -C build
which blueprint-compiler && env PATH="/usr/bin:$PATH" blueprint-compiler --version
- name: Build AppImage
run: |
export PATH="/usr/bin:$PATH"
export PYTHON="/usr/bin/python3"
appimage-builder --recipe AppImageBuilder.yml --skip-test
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: SSH-Studio-AppImage
path: '*.AppImage'
- name: Publish Release Asset
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: |
*.AppImage
*.zsync
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}