@@ -484,9 +484,76 @@ jobs:
484484 name : stack_wallet-ios-aarch64-${{ steps.ver.outputs.version }}
485485 path : stack_wallet-ios-aarch64-${{ steps.ver.outputs.version }}.ipa
486486
487+ build-flatpak :
488+ runs-on : ubuntu-24.04
489+ needs : build-linux
490+ steps :
491+ - uses : actions/checkout@v6
492+
493+ - name : Set version
494+ id : ver
495+ run : |
496+ if [ "${{ github.ref_type }}" = "tag" ]; then
497+ VERSION="${{ github.ref_name }}"
498+ VERSION="${VERSION#v}"
499+ elif [ -n "${{ inputs.version }}" ]; then
500+ VERSION="${{ inputs.version }}"
501+ else
502+ VERSION="0.0.0-staging.${{ github.run_number }}"
503+ fi
504+ echo "version=${VERSION}" >> $GITHUB_OUTPUT
505+
506+ - name : Download Linux bundle
507+ uses : actions/download-artifact@v4
508+ with :
509+ name : stack_wallet-linux-x86_64-${{ steps.ver.outputs.version }}
510+
511+ - name : Stage bundle and icon
512+ run : |
513+ tar -xzf "stack_wallet-linux-x86_64-${{ steps.ver.outputs.version }}.tar.gz" -C flatpak/
514+ cp asset_sources/icon/stack_wallet/icon.png flatpak/com.cypherstack.stackwallet.png
515+
516+ - name : Install Flatpak tools
517+ run : |
518+ sudo apt-get update -q
519+ sudo apt-get install -y flatpak flatpak-builder
520+
521+ - name : Set up Flathub remote
522+ run : flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
523+
524+ - name : Cache Flatpak SDK
525+ uses : actions/cache@v4
526+ with :
527+ path : ~/.local/share/flatpak
528+ key : flatpak-freedesktop-24.08-v1
529+
530+ - name : Install Flatpak SDK
531+ run : |
532+ flatpak install --user --noninteractive flathub \
533+ org.freedesktop.Platform//24.08 \
534+ org.freedesktop.Sdk//24.08
535+
536+ - name : Build Flatpak
537+ run : |
538+ flatpak-builder --user --force-clean \
539+ --repo=flatpak-repo \
540+ build-flatpak flatpak/com.cypherstack.stackwallet.yaml
541+
542+ - name : Bundle Flatpak
543+ run : |
544+ flatpak build-bundle flatpak-repo \
545+ --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo \
546+ "stack_wallet-linux-x86_64-${{ steps.ver.outputs.version }}.flatpak" \
547+ com.cypherstack.stackwallet
548+
549+ - uses : actions/upload-artifact@v4
550+ with :
551+ name : stack_wallet-flatpak-x86_64-${{ steps.ver.outputs.version }}
552+ path : stack_wallet-linux-x86_64-${{ steps.ver.outputs.version }}.flatpak
553+
487554 release :
488555 if : github.ref_type == 'tag'
489- needs : [build-linux, build-android, build-windows, build-macos, build-ios]
556+ needs : [build-linux, build-android, build-windows, build-macos, build-ios, build-flatpak ]
490557 runs-on : ubuntu-latest
491558 permissions :
492559 contents : write
@@ -503,7 +570,7 @@ jobs:
503570 name=$(basename "$dir")
504571 (cd "$dir" && zip -r "../../release-files/${name}.zip" .)
505572 done
506- find artifacts/ \( -name "*.tar.gz" -o -name "*.zip" -o -name "*.ipa" \) -mindepth 2 -exec mv {} release-files/ \;
573+ find artifacts/ \( -name "*.tar.gz" -o -name "*.zip" -o -name "*.ipa" -o -name "*.flatpak" \) -mindepth 2 -exec mv {} release-files/ \;
507574 find artifacts/ -name "*.apk" -mindepth 2 -exec mv {} release-files/ \;
508575
509576 - uses : softprops/action-gh-release@v2
0 commit comments