From 84c7b9f9fc244b4d6205df37a4d1283b00dfa22b Mon Sep 17 00:00:00 2001 From: LukeGus Date: Tue, 25 Nov 2025 17:41:03 -0600 Subject: [PATCH] fix: Build error with runtime repo flag --- .github/workflows/electron.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/electron.yml b/.github/workflows/electron.yml index 48458f89..5bbae501 100644 --- a/.github/workflows/electron.yml +++ b/.github/workflows/electron.yml @@ -318,7 +318,19 @@ jobs: run: | cd flatpak-build flatpak-builder --repo=repo --force-clean --disable-rofiles-fuse build-dir com.karmaa.termix.yml - flatpak build-bundle repo ../release/termix_linux_flatpak.flatpak com.karmaa.termix stable + + # Determine the architecture + ARCH=$(uname -m) + if [ "$ARCH" = "x86_64" ]; then + FLATPAK_ARCH="x86_64" + elif [ "$ARCH" = "aarch64" ]; then + FLATPAK_ARCH="aarch64" + else + FLATPAK_ARCH="$ARCH" + fi + + # Build bundle for the current architecture + flatpak build-bundle repo ../release/termix_linux_flatpak.flatpak com.karmaa.termix --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo - name: Create flatpakref file run: |