Fix: Add version number to output filename #44
This file contains hidden or 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
| name: Build AppImage & Flatpak | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| workflow_dispatch: | |
| jobs: | |
| build-appimage: | |
| runs-on: ubuntu-24.04 # <--- UPGRADE: Modern Ubuntu (GTK 4.14 / Adw 1.5) | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.12' # Ubuntu 24.04 uses Python 3.12 natively | |
| - name: Install System Dependencies | |
| run: | | |
| sudo apt-get update | |
| # We install the modern GTK/Adwaita development stack | |
| sudo apt-get install -y \ | |
| libgirepository1.0-dev \ | |
| gcc libcairo2-dev pkg-config python3-dev \ | |
| python3-gi python3-gi-cairo \ | |
| gir1.2-gtk-4.0 gir1.2-adw-1 libadwaita-1-dev \ | |
| libfuse2 \ | |
| libgdk-pixbuf-2.0-dev \ | |
| gsettings-desktop-schemas | |
| - name: Setup Build Tools (LinuxDeploy) | |
| run: | | |
| # 1. Download tools | |
| wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage | |
| wget https://github.com/niess/linuxdeploy-plugin-python/releases/download/continuous/linuxdeploy-plugin-python-x86_64.AppImage | |
| # 2. Make executable | |
| chmod +x linuxdeploy*.AppImage | |
| # 3. Extract LinuxDeploy (We extract it to run it without FUSE issues) | |
| ./linuxdeploy-x86_64.AppImage --appimage-extract | |
| mv squashfs-root linuxdeploy-root | |
| # 4. DOWNLOAD GTK PLUGIN | |
| wget https://raw.githubusercontent.com/linuxdeploy/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh | |
| chmod +x linuxdeploy-plugin-gtk.sh | |
| mkdir -p bin | |
| mv linuxdeploy-plugin-gtk.sh bin/ | |
| # 5. CLEANUP | |
| rm linuxdeploy*.AppImage | |
| - name: Install Python Dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install . | |
| - name: Build AppImage | |
| run: | | |
| chmod +x build_appimage.sh | |
| ./build_appimage.sh | |
| - name: Upload AppImage | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: FlipStack-AppImage | |
| path: FlipStack*.AppImage |