-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
Versions:
- Node: 22.14.0
- Electron Builder: 26.0.18
- Electron: 37.2.0
- mac version: Sequoia 15.3.2
What I did
Running electron-builder with bundled fpm to produce Linux .deb packages on macOS:
npx electron-builder --linux deb --arm64 --publish=never
Expected
.deb artifact generated successfully.
Actual
Build fails with ERR_ELECTRON_BUILDER_CANNOT_EXECUTE.
fpm process exits with code null (no explicit error).
⨯ Cannot cleanup:
Error #1 --------------------------------------------------------------------------------
Error: .../electron-builder/[email protected]/fpm-1.16.0-ruby-3.4.3-darwin-arm64/fpm process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Exit code: null
Command failed: .../fpm -s dir --force -t deb \
-d libgtk-3-0 -d libnotify4 -d libnss3 -d libxss1 -d libxtst6 -d xdg-utils \
-d libatspi2.0-0 -d libuuid1 -d libsecret-1-0 \
--deb-recommends libappindicator3-1 \
--deb-compression xz \
--architecture amd64 \
--description "App" \
--version 2.0.0 \
--package release/build/app_2.0.0_amd64.deb \
--name app \
--maintainer "App Maintainer <[email protected]>" \
--url https://github.com/example/app \
--vendor "App Vendor <[email protected]>" \
--deb-priority optional \
--license MIT \
release/build/linux-unpacked/=/opt/App \
assets/icons/png/256x256.png=/usr/share/icons/hicolor/256x256/apps/app.png \
<temp>/8-app.desktop=/usr/share/applications/app.desktop
Error #2 --------------------------------------------------------------------------------
Error: .../electron-builder/[email protected]/fpm-1.16.0-ruby-3.4.3-darwin-arm64/fpm process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Exit code: null
Command failed: .../fpm -s dir --force -t deb \
-d libgtk-3-0 -d libnotify4 -d libnss3 -d libxss1 -d libxtst6 -d xdg-utils \
-d libatspi2.0-0 -d libuuid1 -d libsecret-1-0 \
--deb-recommends libappindicator3-1 \
--deb-compression xz \
--architecture armhf \
--description "App" \
--version 2.0.0 \
--package release/build/app_2.0.0_armv7l.deb \
--name app \
--maintainer "App Maintainer <[email protected]>" \
--url https://github.com/example/app \
--vendor "App Vendor <[email protected]>" \
--deb-priority optional \
--license MIT \
release/build/linux-armv7l-unpacked/=/opt/App \
assets/icons/png/256x256.png=/usr/share/icons/hicolor/256x256/apps/app.png \
<temp>/a-app.desktop=/usr/share/applications/app.desktop
"linux": {
"icon": "./icons/png/256x256.png",
"target": [
{
"target": "AppImage",
"arch": [
"x64",
"armv7l",
"arm64"
]
},
{
"target": "deb",
"arch": [
"x64",
"armv7l",
"arm64"
]
},
{
"target": "rpm",
"arch": [
"x64",
"armv7l",
"arm64"
]
}
],
"executableName": "app",
"desktop": {
"entry": {
"Name": "app"
}
},
"category": "Development",
"mimeTypes": [
"x-scheme-handler/com.app"
]
},
Notes
This happens consistently on macOS.
Building on Ubuntu works fine, but i need on macOS.
Using bundled fpm (not system fpm).
.deb artifacts are never generated (ENOENT).
AppImage build works fine. Only deb and rpm doesn't work.
Metadata
Metadata
Assignees
Labels
No labels