[X] I agree to follow the code of conduct that this project uses.
[X] I have searched the issue tracker for a bug that matches the one I want to file, without success.
Electron Forge version
7.4.0
Electron version
31.3.0
Operating system
Ubuntu 24.04
Last known working Electron Forge version
7.4.0
Expected behavior
Try to make .rpm package but failed with errors
Actual behavior
Failed with the below errors:
An unhandled rejection has occurred inside Forge:
Error: Command failed with a non-zero return code (1):
rpmbuild -bb /tmp/electron-installer--30018-OEWdZ25er7DK/frame0_1.0.0.beta.0_x86_64/SPECS/frame0.spec --target x86_64-none-linux --define _topdir /tmp/electron-installer--30018-OEWdZ25er7DK/frame0_1.0.0.beta.0_x86_64
Building target platforms: x86_64-none-linux
Building for target x86_64-none-linux
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.zcb8Zx
RPM build errors:
+ umask 022
+ cd /tmp/electron-installer--30018-OEWdZ25er7DK/frame0_1.0.0.beta.0_x86_64/BUILD
+ /bin/rm -rf /tmp/electron-installer--30018-OEWdZ25er7DK/frame0_1.0.0.beta.0_x86_64/BUILDROOT/frame0-1.0.0.beta.0-1.x86_64
+ /bin/mkdir -p /tmp/electron-installer--30018-OEWdZ25er7DK/frame0_1.0.0.beta.0_x86_64/BUILDROOT
+ /bin/mkdir /tmp/electron-installer--30018-OEWdZ25er7DK/frame0_1.0.0.beta.0_x86_64/BUILDROOT/frame0-1.0.0.beta.0-1.x86_64
+ mkdir -p /tmp/electron-installer--30018-OEWdZ25er7DK/frame0_1.0.0.beta.0_x86_64/BUILDROOT/frame0-1.0.0.beta.0-1.x86_64/usr/
+ cp -r usr/bin usr/lib usr/share /tmp/electron-installer--30018-OEWdZ25er7DK/frame0_1.0.0.beta.0_x86_64/BUILDROOT/frame0-1.0.0.beta.0-1.x86_64/usr/
+ /usr/lib/rpm/brp-compress /usr
+ /usr/lib/rpm/brp-elfperms
+ /usr/lib/rpm/brp-strip /usr/bin/strip
xargs: /usr/bin/strip: No such file or directory
xargs: /usr/bin/strip: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.zcb8Zx (%install)
Bad exit status from /var/tmp/rpm-tmp.zcb8Zx (%install)
at ChildProcess.<anonymous> (/home/niklaus/git/frame0/node_modules/electron-installer-redhat/node_modules/@malept/cross-spawn-promise/src/index.ts:172:16)
at ChildProcess.emit (node:events:519:28)
at ChildProcess.emit (node:domain:488:12)
at maybeClose (node:internal/child_process:1105:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:305:5)
Steps to reproduce
npm run make
# or
npm run make -- --targets=@electron-forge/maker-rpm
Pre-flight checklist
Electron Forge version
7.4.0
Electron version
31.3.0
Operating system
Ubuntu 24.04
Last known working Electron Forge version
7.4.0
Expected behavior
Try to make .rpm package but failed with errors
Actual behavior
Failed with the below errors:
Steps to reproduce
Additional information
forge.config.ts
package.json