Cannot compile application for rpm
- Dominant language
- TypeScript
- Stars
- 7.1k
- Forks
- 641
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 30
Description
### Pre-flight checklist
- [X] I have read the [contribution documentation](https://github.com/electron/forge/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [code of conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) 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
6.2.1
### Electron version
25.0.1
### Operating system
Q4OS (Debian based)
### Last known working Electron Forge version
_No response_
### Expected behavior
When I run **npm run make** (the command to make the executables), I should get both .deb and .rpm executables.
### Actual behavior
When I run **npm run make**, I correctly get the .deb file, but the .rpm build report the following error:
An unhandled rejection has occurred inside Forge:
Error: Command failed with a non-zero return code (1):
rpmbuild -bb /tmp/electron-installer--4514-mcNnRm0aV7Ta/app_1.0.0_x86_64/SPECS/app.spec --target x86_64-none-linux --define _topdir /tmp/electron-installer--4514-mcNnRm0aV7Ta/app_1.0.0_x86_64
Building target platforms: x86_64-none-linux
Building for target x86_64-none-linux
error: Package has no %description: app
at ChildProcess. (/mnt/host/Users/nicol/Desktop/Lavoro/APP/App/node_modules/electron-installer-redhat/node_modules/@malept/cross-spawn-promise/dist/src/index.js:99:24)
at ChildProcess.emit (node:events:513:28)
at ChildProcess.emit (node:domain:489:12)
at maybeClose (node:internal/child_process:1091:16)
at Socket. (node:internal/child_process:449:11)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)
at Pipe. (node:net:322:12)
### Steps to reproduce
I guess the starter project, and a Linux machine, would be fine to reproduce this.
### Additional information
Content of **forge.config.js**
module.exports = {
packagerConfig: {
asar: true,
linux: {
target: 'deb',
target: 'rpm'
}
},
rebuildConfig: {},
makers: [
{
name: '@electron-forge/maker-squirrel',
config: {
authors: 'Nicola Baesso',
description: 'Some desc.'
},
},
{
name: '@electron-forge/maker-zip',
platforms: ['darwin'],
},
{
name: '@electron-forge/maker-deb',
config: {
"authors": 'Nicola Baesso',
"description": 'Some desc.',
"name": "app",
"category": "Games",
"license":"proprietary"
},
},
{
name: '@electron-forge/maker-rpm',
config: {
"authors": 'Nicola Baesso',
description: 'Some desc.',
"name": "app",
"category": "Games",
"license":"proprietary"
},
},
],
plugins: [
{
name: '@electron-forge/plugin-auto-unpack-natives',
config: {},
},
],
};
Contributor guide
Assessment
This issue has not been assessed yet.