Skip to content

Commit eed8d98

Browse files
committed
Use system FPM to fix electron builder on Linux ARM64
1 parent cd9f7e3 commit eed8d98

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ jobs:
3737
with:
3838
python-version: '3.11'
3939

40+
# Due to https://github.com/electron-userland/electron-builder/issues/3901
41+
# Electron-Builder fails to produce deb packages on arm64 without this:
42+
- name: Install system FPM to fix ARM64 Linux builds
43+
if: matrix.platform == 'linux' && matrix.arch == 'arm64'
44+
run: |
45+
sudo apt-get update
46+
sudo apt-get install ruby ruby-dev build-essential
47+
sudo gem install --no-document fpm
48+
4049
- run: npm ci
4150

4251
# The API key in APPLE_API_KEY is a PEM cert that must be read from disk:
@@ -58,6 +67,8 @@ jobs:
5867
# For Windows signing:
5968
WIN_CSC_LINK: ${{ secrets.WIN_CSC_LINK }}
6069
WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }}
70+
# Workaround - see FPM install step above
71+
USE_SYSTEM_FPM: ${{ matrix.platform == 'linux' && matrix.arch == 'arm64' }}
6172

6273
- uses: actions/upload-artifact@v4
6374
with:

0 commit comments

Comments
 (0)