From ef020601ebeef9c65ba3235ec8e7ed1fcb39c087 Mon Sep 17 00:00:00 2001 From: Jannis Braun <151788261+TheZwiss@users.noreply.github.com> Date: Fri, 3 Jul 2026 13:54:56 +0200 Subject: [PATCH] ci(release): build arm64 .deb with host-native fpm (USE_SYSTEM_FPM) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CI run 2: mac/win/linux-x64 green, but linux-arm64 failed packaging .deb — electron-builder's bundled fpm is x86_64-only and can't execute on the arm64 runner (Exec format error). The arm64 AppImage built fine; only fpm/.deb broke. Install fpm natively on the Linux runners and set USE_SYSTEM_FPM=true so both arches package .deb with a host-native fpm. Preserves arm64 .deb (the reason the arm64 runner was added — Raspberry Pi users). --- .github/workflows/release.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5756faa7..aed1bb56 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,6 +53,17 @@ jobs: libxkbcommon-dev libxkbcommon-x11-dev libxkbfile-dev \ libxrandr-dev libxinerama-dev libx11-xcb-dev + - name: Install fpm for .deb packaging + if: runner.os == 'Linux' + # electron-builder bundles an x86_64-only fpm; on the arm64 runner it + # aborts the .deb target with "cannot execute binary file: Exec format + # error". Install fpm natively and set USE_SYSTEM_FPM (below) so both + # arches package their .deb with a host-native fpm. ruby-dev + make are + # needed for fpm's native gem dependencies. + run: | + sudo apt-get install -y ruby ruby-dev build-essential + sudo gem install --no-document fpm + - name: Setup pnpm uses: pnpm/action-setup@v4 with: @@ -80,3 +91,7 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} CSC_IDENTITY_AUTO_DISCOVERY: "false" + # Use the host-native fpm installed above instead of electron-builder's + # bundled x86_64 fpm (which can't run on the arm64 runner). No-op on + # macOS/Windows, which don't build .deb. + USE_SYSTEM_FPM: "true"