diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index e0f317616..8a7c5908f 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -168,6 +168,22 @@ jobs: cp "$src.asc" "staging/zayit_${VERSION}_${{ matrix.arch }}.deb.asc" fi + # The app folder as a .tar.gz, once per architecture (beside the .deb), for the Flathub manifest to repackage + - name: Build & stage Linux .tar.gz (Flathub) + if: startsWith(matrix.os, 'ubuntu') && matrix.pkg == 'deb' + shell: bash + run: | + set -euo pipefail + ./gradlew :SeforimApp:packageGraalvmTar + src="$(find SeforimApp/build/compose/binaries/main/graalvm-tar.gz -name '*.tar.gz' | head -n1)" + [ -n "$src" ] || { echo "::error::No .tar.gz produced"; exit 1; } + case "${{ matrix.arch }}" in + amd64) tar_arch=x86_64 ;; + arm64) tar_arch=aarch64 ;; + *) tar_arch="${{ matrix.arch }}" ;; + esac + cp "$src" "staging/zayit-${VERSION}-linux-${tar_arch}.tar.gz" + - name: Build & stage Linux .rpm if: startsWith(matrix.os, 'ubuntu') && matrix.pkg == 'rpm' shell: bash diff --git a/SeforimApp/build.gradle.kts b/SeforimApp/build.gradle.kts index 41bd5e362..42fafad32 100644 --- a/SeforimApp/build.gradle.kts +++ b/SeforimApp/build.gradle.kts @@ -277,6 +277,8 @@ nucleus.application { TargetFormat.Pacman, // Microsoft Store package, built locally (packageGraalvmAppX), unsigned: the Store signs it TargetFormat.AppX, + // the app folder as a .tar.gz on the GitHub release, which the Flathub manifest repackages + TargetFormat.Tar, ) vendor = "KDroidFilter" cleanupNativeLibs = true